Пример #1
0
 private void FormDebug_FormClosing(object sender, FormClosingEventArgs e)
 {
     LogListener.CloseThreads();
     if (WindowState == FormWindowState.Normal)
     {
         Config.Set(c => c.Application.WindowY, Top);
         Config.Set(c => c.Application.WindowX, Left);
         if (Height > 20)
         {
             Config.Set(c => c.Application.WindowHeight, Height);
         }
         if (Width > 100)
         {
             Config.Set(c => c.Application.WindowWidth, Width);
         }
     }
     Config.Set(c => c.Application.Maximized, WindowState == FormWindowState.Maximized);
 }