Exemple #1
0
 private void FormulaDetailShow()
 {
     if (myPanel.InvokeRequired)
     {
         Delegate_Fuc delegate_Fuc = new Delegate_Fuc(FormulaDetailShow);
         this.myPanel.Invoke(delegate_Fuc);
     }
     else
     {
         myPanel.SetPanel(Golbal.MaterialQueue.ToList());
     }
 }
Exemple #2
0
 /// <summary>
 /// 委托
 /// </summary>
 /// <param name="str"></param>
 private void Label()
 {
     if (this.label.InvokeRequired)
     {
         Delegate_Fuc delegate_Fuc = new Delegate_Fuc(Label);
         if (this.label.IsHandleCreated)
         {
             label.Invoke(delegate_Fuc, new object[] { });
         }
     }
     else
     {
         label.BackColor = Alarm ? Color.DeepPink : Color.LimeGreen;
     }
 }
Exemple #3
0
 public void ResetPanel()
 {
     if (this.InvokeRequired)
     {
         Delegate_Fuc delegate_Fuc = new Delegate_Fuc(ResetPanel);
         this.Invoke(delegate_Fuc);
     }
     else
     {
         this.Controls.Clear();
         panelCount = 0;
         oMaterial  = 0;
         oWater     = 0;
         this.Invalidate();
     }
 }