Пример #1
0
 public void UpdateBoxInHouseTimeLabel(ILogicalTime time)
 {
     if (boxInHouseTimeLabel.InvokeRequired)
     {
         boxInHouseTime = time;
         DrawChangesDelegate d = new DrawChangesDelegate(_UpdateBoxInHouseTimeLabel);
         Invoke(d);
     }
 }
Пример #2
0
 public void UpdateTimeManagementValueLabels()
 {
     if (panel1.InvokeRequired)
     {
         DrawChangesDelegate d = new DrawChangesDelegate(UpdateTimeManagementValueLabels);
         Invoke(d);
     }
     else
     {
         UpdateFederateLogicalTimeLabel();
         UpdateFederateLookaheadLabel();
         UpdateFederateGALTLabel();
         UpdateFederateStatusLabel();
         UpdateFederateRolLabel();
         UpdateFederatePendingTimeLabel();
         _UpdateTimeAdvanceOperationLabel();
     }
 }
Пример #3
0
 public void UpdateTimeAdvanceOperationLabel()
 {
     if (timeAdvanceOperationLabel.InvokeRequired)
     {
         DrawChangesDelegate d = new DrawChangesDelegate(UpdateTimeAdvanceOperationLabel);
         Invoke(d);
     }
     else
     {
         _UpdateTimeAdvanceOperationLabel();
     }
 }
Пример #4
0
 public void UpdateUI(Actor.MoveDirection direction)
 {
     // InvokeRequired required compares the thread ID of the
     // calling thread to the thread ID of the creating thread.
     // If these threads are different, it returns true.
     if (this.screen.InvokeRequired)
     {
         this.direction = direction;
         DrawChangesDelegate d = new DrawChangesDelegate(_UpdateUI);
         Invoke(d);
     }
     else
     {
         _UpdateUI();
     }
 }
Пример #5
0
 public void UpdateUI()
 {
     // InvokeRequired required compares the thread ID of the
     // calling thread to the thread ID of the creating thread.
     // If these threads are different, it returns true.
     if (this.screen.InvokeRequired)
     {
         DrawChangesDelegate d = new DrawChangesDelegate(_UpdateUI);
         Invoke(d);
     }
     else
     {
         img = scenario.GetScenario();
         screen.Image = img;
     }
 }