예제 #1
0
파일: FrmMain.cs 프로젝트: 0000duck/DSW_JM
 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());
     }
 }
예제 #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;
     }
 }
예제 #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();
     }
 }