Beispiel #1
0
 private void organizeUserPanelControls()
 {
     if (pUsers.InvokeRequired)
     {
         noArgsCallback upc = new noArgsCallback(this.organizeUserPanelControls);
         this.Invoke(upc);
     }
     else
     {
         for (int i = 0; i < pUsers.Controls.Count; i++)
         {
             Control c = pUsers.Controls[i];
             c.Top = c.Height * i;
         }
     }
 }
Beispiel #2
0
 private void closeApp()
 {
     if (this.InvokeRequired)
     {
         noArgsCallback cac = new noArgsCallback(this.closeApp);
         this.Invoke(cac);
     }
     else
     {
         this.Close();
     }
 }
Beispiel #3
0
 private void invokeFlashWindow()
 {
     if (this.InvokeRequired)
     {
         noArgsCallback nac = new noArgsCallback(this.invokeFlashWindow);
         this.Invoke(nac);
     }
     else
     {
         FlashWindow(this.Handle, true);
     }
 }
Beispiel #4
0
 private void clearUserPanel()
 {
     if (pUsers.InvokeRequired)
     {
         noArgsCallback upc = new noArgsCallback(this.clearUserPanel);
         this.Invoke(upc);
     }
     else
     {
         pUsers.Controls.Clear();
     }
 }