Пример #1
0
 //*********************************************************
 //*********************************************************
 // Constructor
 public hud(frmTerminal term)
 {
     InitializeComponent();
     m_term = term;
     m_util = new Util();
    
 }
Пример #2
0
        public void GetMeterStatus(Int16 meterUpdate)
        {
            frmTerminal frmTerminal = new frmTerminal();

            alarmIndicated           = (meterStatus & 0x01);
            xGyro_Fog                = (meterStatus & 0x02) >> 1;
            lGyro_Fog                = (meterStatus & 0x04) >> 2;
            meterHeater              = (meterStatus & 0x08) >> 4;
            dumpIndigator            = (meterStatus & 0x10) >> 8;
            incorrectCommandReceived = (meterStatus & 0x20) >> 10;
            serialPortTimeout        = (meterStatus & 0x40) >> 20;
            receiveDataCheckSumError = (meterStatus & 0x80) >> 40;
            meterStatus              = meterUpdate;
            frmTerminal.meter_status = meterUpdate;
            if (false)
            {
                Console.WriteLine("alarmIndicated " + alarmIndicated);
                Console.WriteLine("Cross FOG " + xGyro_Fog);
                Console.WriteLine("Long FOG " + lGyro_Fog);
                Console.WriteLine("Meter Heater " + meterHeater);
                Console.WriteLine("Dump indicator " + dumpIndigator);
                Console.WriteLine("Bad command " + incorrectCommandReceived);
                Console.WriteLine("Serial port error " + serialPortTimeout);
                Console.WriteLine("Bad checksum " + receiveDataCheckSumError);
            }
        }
Пример #3
0
        public ManualControl(frmTerminal parentTerminal)
        {
            this.KeyPreview      = true;
            parentSerialTerminal = parentTerminal;
            InitializeComponent();

            this.KeyDown += new KeyEventHandler(keySend);
            this.KeyUp   += new KeyEventHandler(keyStop);
        }
Пример #4
0
 public DebugPanel(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }
Пример #5
0
 public DebugPanel(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }
Пример #6
0
 //*********************************************************
 //*********************************************************
 // Constructor
 public hud(frmTerminal term)
 {
     InitializeComponent();
     m_term = term;
     m_util = new Util();
 }
Пример #7
0
 public GUIform(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }
Пример #8
0
 public DemoWinow(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }
Пример #9
0
 public DemoWinow(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }
Пример #10
0
 public GUIform(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }