Example #1
0
 public static void New() {
   if (newItemDialog == null) newItemDialog = new NewItemDialog();
   if (newItemDialog.ShowDialog() == DialogResult.OK) {
     IView view = MainFormManager.MainForm.ShowContent(newItemDialog.Item);
     if (view == null)
       ErrorHandling.ShowErrorDialog("There is no view for the new item. It cannot be displayed.", new InvalidOperationException("No View Available"));
   }
 }
Example #2
0
 public static void New()
 {
     if (newItemDialog == null)
     {
         newItemDialog = new NewItemDialog();
     }
     if (newItemDialog.ShowDialog() == DialogResult.OK)
     {
         IView view = MainFormManager.MainForm.ShowContent(newItemDialog.Item);
         if (view == null)
         {
             ErrorHandling.ShowErrorDialog("There is no view for the new item. It cannot be displayed.", new InvalidOperationException("No View Available"));
         }
     }
 }
Example #3
0
 static FileManager()
 {
     newItemDialog  = null;
     openFileDialog = null;
     saveFileDialog = null;
 }
Example #4
0
 static FileManager() {
   newItemDialog = null;
   openFileDialog = null;
   saveFileDialog = null;
 }