Exemplo n.º 1
0
        private void Form1_MouseUp(object sender, MouseEventArgs e)
        {
            Rectangle tmp = FRect();

            _window.Position = tmp;
            if (forcePos.Checked)
            {
                WindowSizeSetter.Make(_window, tmp);
            }
            Close();
        }
Exemplo n.º 2
0
 private void ForcePos_CheckedChanged(object sender, EventArgs e)
 {
     if (forcePos.Checked)
     {
         if (Program.Ctx.WindowSizeSetters.Any(s => s.Window == _window))
         {
             return;
         }
         WindowSizeSetter.Make(_window, _window.Position);
         Close();
     }
     else
     {
         if (Program.Ctx.WindowSizeSetters.All(s => s.Window != _window))
         {
             return;
         }
         WindowSizeSetter.TryRemove(_window);
         Close();
     }
 }