private void LoadPreviousSession() { Session session; SaverLoader.LoadSession(out session); LoadSession(session); // session is loaded even if it's empty to force the update of statusStrip; }
private void SaveSessionAs() { if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { try { if (SaverLoader.SaveSession(ReadSession(), saveFileDialog1.FileName)) { InformationMessageBox("Saved!"); } } catch (Exception ex) { MessageBox.Show(ex.Message); } } }
private void SaveConfig() { SaverLoader.SaveConfig(GlobalDataAndMethods.Config); }
private void SaveSession() { SaverLoader.SaveSession(ReadSession()); }