Esempio n. 1
0
 /// <summary>
 /// Deactivates itself
 /// </summary>
 public void Deactivate()
 {
     if (!isActive)
     {
         return;
     }
     ControlPanel.RemovePanels(this);
     if (Text.Length > 0)
     {
         BorderStyle = BorderStyle.None;
     }
     if (Parent != null)
     {
         if (Parent.Contains(movePicture))
         {
             Parent.Controls.Remove(movePicture);
         }
     }
     isActive = false;
     moved    = false;
 }
Esempio n. 2
0
 /// <summary>
 /// Deactivates itself
 /// </summary>
 public void Deactivate()
 {
     ControlPanel.RemovePanels(this);
     isActive = false;
 }