Esempio n. 1
0
 protected void ClearPanel()
 {
     if (panel1.InvokeRequired)
     {
         ClearPanelCallback d = new ClearPanelCallback(ClearPanel);
         panel1.BeginInvoke(d, new object[] { });
     }
     else
     {
         panel1.Controls.Clear();
     }
 }
Esempio n. 2
0
 protected void ClearPanel()
 {
     if (panel1.InvokeRequired)
     {
         ClearPanelCallback d = new ClearPanelCallback(ClearPanel);
         panel1.BeginInvoke(d, new object[] { });
     }
     else
     {
         panel1.Controls.Clear();
     }
 }