Example #1
0
 //This class we monitor the robots, it works quite simply.  Essentially, every 3 seconds it will poll the server for a change in state,
 //it will then display that state, and based on that state, perform certain acitions.
 public Form1()
 {
     InitializeComponent();
     UpdatelblIdleTXT = new del_String(UpdatelblIdel);
 }
Example #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     PerformPolling = true;
     AlarmOnOrOff = CurrentAlarmState.AlarmOff;
     cmbIdleTime.SelectedIndex = 2;
     string curDir = Environment.CurrentDirectory;
     string toAdd;
     if (curDir.Contains('/'))
     {
         toAdd = "/alarm.wav";
     }
     else{toAdd= "\\alarm.wav";}
     Player = new SoundPlayer(new FileStream((curDir+toAdd),FileMode.Open,FileAccess.Read,FileShare.Read));
     UpdateStatusDel=new del_String(UpdateInstrumentStatus);
     BitmapDel=new del_BitMap(UpdateImages);
     //start polling
     BeginMonitoring();
 }