Langsung ke konten utama

Postingan

Menampilkan postingan dengan label pos AX

To Read and Write From Serial Port C#

using System ; using System . IO . Ports ; using System . Windows . Forms ; namespace SerialPortExample { class SerialPortProgram { // Create the serial port with basic settings private SerialPort port = new SerialPort ( "COM1" , 9600 , Parity . None , 8 , StopBits . One ); [ STAThread ] static void Main ( string [] args ) { // Instatiate this class new SerialPortProgram (); } private SerialPortProgram () { Console . WriteLine ( "Incoming Data:" ); // Attach a method to be called when there // is data waiting in the port's buffer port . DataReceived += new SerialDataReceivedEventHandler ( port_DataReceived ); // Begin communications port . Open (); // Enter an application loop to keep this thread alive Application . Run (); } private void port_DataReceived ( object sender , SerialDataR...

String to hexadecimal and back C#

This is code to convert String to Hex and Back using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace hexTester {     public class Program     {         public static void Main(string[] args)         {             string a = "testing";             Console.WriteLine(a);             string hex = ConvertStringToHex(a);             Console.WriteLine(hex);             Console.WriteLine(ConvertHexToString(hex));         }                 public static string ConvertStringToHex(string asciiString)         {             string hex = "";             foreach (char c in as...

Starting Dynamics AX for Retail (POS Development)

Tools we need to instal : Visual Studio for development tools. Dev Express License ( Optional  for better touch GUI) Retail SDK (POS Source Code) You can found Retail SDK on Dynamics AX Installation. After installation finished you can found the source code  on document folder. For very first time lets  focus at the two folder on the POS Plug-ins, there is  Services  and  Triggers  because almost all POS function source code is on that folder. Services : Services are actually .Net assemblies. POS implements many of the features as services using interfaces and can be modified using Visual Studio. POS loads these services at run time by calling the interfaces. So whenever you modify or extend the standard service keep the assembly name same as original so that POS can recognize it and call it at run time. Triggers : Triggers are called before and after the operations. There are two types of triggers, Pre-triggers and Po...