Ejemplo n.º 1
0
 private void startMouse(SystemWindow fg)
 {
     if (findWindow(fg))
     {
         if (DrawForm.Reactivate())
         {
             return;
         }
         mf = new MouseForm(this);
     }
 }
Ejemplo n.º 2
0
 public DrawForm(ViewContainer vc)
 {
     this.vc    = vc;
     activeForm = this;
     InitializeComponent();
     splitsX.Add(vc.Adjustment.BaseRect.X);
     splitsX.Add(vc.Adjustment.BaseRect.X + vc.Adjustment.BaseRect.Width);
     splitsY.Add(vc.Adjustment.BaseRect.Y);
     splitsY.Add(vc.Adjustment.BaseRect.Y + vc.Adjustment.BaseRect.Height);
     placeOnScreen();
     Show();
 }
Ejemplo n.º 3
0
 private void quit()
 {
     if (splitsX.Count == 0 && splitsY.Count == 0)
     {
         activeForm = null;
         Dispose();
     }
     else
     {
         mouseDown = MouseButtons.None;
         Hide();
     }
 }