private void DoSave() { try { WinRMXFile.Save(saveFileDialog.FileName, connections); isNew = false; FileNameChanged(); } catch (Exception ex) { savingCanceled = true; MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void Open() { try { connections = WinRMXFile.Load(openFileDialog.FileName); ReloadTree(); saveFileDialog.FileName = openFileDialog.FileName; isNew = false; FileNameChanged(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }