Esempio n. 1
0
        public Zone Create()
        {
            Zone z = new Zone();

            //defaults
            z.Size = new Size(500,500);
            z.Location = new Point(100, 100);
            zones.Add(z);

            z.Delete += new EventHandler(zone_Delete);
            z.StartEditMode();

            return z;
        }
Esempio n. 2
0
 private bool MouseInZone(Zone z)
 {
     Rectangle mouseRect = new Rectangle(inputState.MouseX, inputState.MouseY, 1, 1);
     return z.Rectangle.IntersectsWith(mouseRect);
 }
Esempio n. 3
0
 public void SnapWindow(IntPtr hwnd, Zone zone)
 {
     this.zone = zone;
     this.windowToSnap = hwnd;
     timer.Start();
 }