示例#1
0
  { public static void Run()
    {
        if (GeneralRegistry.GetSaveFiles())
        {
            IO_SaveAll.SaveAll();
        }

        if (RunRegistry.GetIsModular())
        {
            RunManager_Modular.Run();
        }
        else
        {
            RunManager_Combined.Run();
        }
    }
示例#2
0
    protected override void OnClosing(CancelEventArgs CEA)
    {
        base.OnClosing(CEA);

        FileTree.This.Save();
        PanelLeft.Closing();

        if (TabManager.HasTabs())
        {
            IO_SaveAll.SaveAll();
        }

        if (Options_Registry.IsChecked)
        {
            RegistryManager.DeleteAccount();
            return;
        }

        if (WindowState == FormWindowState.Normal)
        {
            WindowStateManager.SetState((int)FormWindowState.Normal);

            Rectangle Rect = new Rectangle();

            Rect.Width  = Size.Width;
            Rect.Height = Size.Height;
            Rect.X      = Location.X;
            Rect.Y      = Location.Y;

            WindowLocationManager.SetLocation(Rect);
        }

        else if (WindowState == FormWindowState.Maximized)
        {
            WindowStateManager.SetState((int)FormWindowState.Maximized);
        }
    }
示例#3
0
 public void Clicked()
 {
     IO_SaveAll.SaveAll();
 }
示例#4
0
 void OnClick(object Obj, EventArgs EA)
 {
     IO_SaveAll.SaveAll();
 }