Example #1
0
  { public static void SaveAll()
    {
        ArrayList Datas = TabManager.GetAllTabData();

        foreach (TabData Data in Datas)
        {
            DialogResult OK = IO_Save.Save(Data);

            if (OK == DialogResult.Cancel)
            {
                State.RefreshSaves();
                return;
            }
        }

        State.RefreshSaves();
    }
Example #2
0
  { public static void CloseAll()
    {
        ArrayList Datas = TabManager.GetAllTabData();

        foreach (TabData Data in Datas)
        {
            DialogResult OK = IO_Save.SaveAskIfChanged(Data);

            if (OK == DialogResult.Cancel)
            {
                return;
            }
        }

        TabManager.RemoveAll();
        State.NoFilesOpen();
    }
Example #3
0
  { public static void Close()
    {
        TabData Data = TabManager.GetSelectedTabData();

        DialogResult OK = IO_Save.SaveAskIfChanged(Data);

        if (OK == DialogResult.Cancel)
        {
            return;
        }

        TabManager.Remove();

        if (!TabManager.HasTabs())
        {
            State.NoFilesOpen();
        }
    }
Example #4
0
 void OnClick(object Obj, EventArgs EA)
 {
     IO_Save.Save();
 }
Example #5
0
 public void Clicked()
 {
     IO_Save.Save();
 }