Пример #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();
    }
Пример #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();
    }
Пример #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();
        }
    }
Пример #4
0
 void OnClick(object Obj, EventArgs EA)
 {
     IO_Save.Save();
 }
Пример #5
0
 public void Clicked()
 {
     IO_Save.Save();
 }