Exemple #1
0
 public void ProcessCommand(DataObj2 data = null)
 {
     if (data != null)
     {
         m_Queue.Enqueue(data);
         foreach (var cnt in this.CameraControls)
         {
             cnt.Run();
         }
     }
 }
 public override void RunOnce()
 {
     try
     {
         using (var client = new SyncServiceClient())
         {
             var result = client.Sync();
             var obj    = DataObj2.Parse(result);
             if (Submit != null && obj != null)
             {
                 Submit(this, new ValueEventArgs <DataObj2>(obj));
             }
         }
     }
     catch (TimeoutException)
     {
         //No problems
         //Timeout every 10 minute
         Thread.Sleep(TimeSpan.FromSeconds(1));
     }
 }
Exemple #3
0
 private void testRunToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ProcessCommand(DataObj2.Test());
 }
Exemple #4
0
 private void TestMenuItem_Click(object sender, EventArgs e)
 {
     ProcessCommand(DataObj2.Test());
 }