コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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);
            }
        }