Esempio n. 1
0
        private void outlineResized(FrameForm target)
        {
            Rectangle rectangle = currentWindow.Rectangle.ToRectangle();
            Rectangle position  = currentWindow.Position.ToRectangle();
            Point     p         = new Point(target.Left - rectangle.Left + position.Left,
                                            target.Top - rectangle.Top + position.Top);
            Rectangle newPos = new Rectangle(p, target.Size);

            currentWindow.Position = RECT.FromRectangle(newPos);
        }
Esempio n. 2
0
 private void outline_CheckedChanged(object sender, EventArgs e)
 {
     if (ff != null)
     {
         ff.Dispose();
     }
     if (outline.Checked)
     {
         ff = new FrameForm(currentWindow.Rectangle.ToRectangle(), position.Enabled && size.Enabled ? new ResizedDelegate(outlineResized) : null);
     }
 }
Esempio n. 3
0
 private void outline_CheckedChanged(object sender, EventArgs e)
 {
     if (ff != null)
         ff.Dispose();
     if (outline.Checked)
     {
         try
         {
             ff = new FrameForm(currentAccObj.Location, null);
         }
         catch (COMException) { }
     }
 }
Esempio n. 4
0
 private void outline_CheckedChanged(object sender, EventArgs e)
 {
     if (ff != null)
     {
         ff.Dispose();
     }
     if (outline.Checked)
     {
         try
         {
             ff = new FrameForm(currentAccObj.Location, null);
         }
         catch (COMException) { }
     }
 }
Esempio n. 5
0
 private void outline_CheckedChanged(object sender, EventArgs e)
 {
     if (ff != null)
         ff.Dispose();
     if (outline.Checked)
     {
         ff = new FrameForm(currentWindow.Rectangle.ToRectangle(), position.Enabled && size.Enabled ? new ResizedDelegate(outlineResized) : null);
     }
 }
Esempio n. 6
0
 private void outlineResized(FrameForm target)
 {
     Rectangle rectangle = currentWindow.Rectangle.ToRectangle();
     Rectangle position = currentWindow.Position.ToRectangle();
     Point p = new Point(target.Left - rectangle.Left + position.Left,
         target.Top - rectangle.Top + position.Top);
     Rectangle newPos = new Rectangle(p, target.Size);
     currentWindow.Position = RECT.FromRectangle(newPos);
 }