예제 #1
0
 public void XtraTabPage_SetText(DevExpress.XtraTab.XtraTabPage xtraTabPage, string text)
 {
     if (xtraTabPage.InvokeRequired)
     {
         xtraTabPage.Invoke(new Action(() =>
         {
             xtraTabPage.Text = text;
         }));
     }
     else
     {
         xtraTabPage.Text = text;
     }
 }
예제 #2
0
 public void XtraTabPage_ControlsRemove(DevExpress.XtraTab.XtraTabPage xtraTabPage, Control control)
 {
     if (xtraTabPage.InvokeRequired)
     {
         xtraTabPage.Invoke(new Action(() =>
         {
             xtraTabPage.Controls.Remove(control);
         }));
     }
     else
     {
         xtraTabPage.Controls.Remove(control);
     }
 }