{ 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(); }
{ 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(); }
{ 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(); } }
void OnClick(object Obj, EventArgs EA) { IO_Save.Save(); }
public void Clicked() { IO_Save.Save(); }