예제 #1
0
 public void EmptyDataStore(object sender, EventArgs e)
 {
     try
     {
         storage.Writer.Empty();
         explorerPresenter.HideRightHandPanel();
         explorerPresenter.ShowRightHandPanel();
     }
     catch (Exception err)
     {
         explorerPresenter.MainPresenter.ShowError(err);
     }
 }
예제 #2
0
 public void EmptyDataStore(object sender, EventArgs e)
 {
     explorerPresenter.MainPresenter.ShowWaitCursor(true);
     explorerPresenter.MainPresenter.ShowMessage("Emptying datastore...", Simulation.MessageType.Information);
     try
     {
         storage.Writer.Empty();
         explorerPresenter.HideRightHandPanel();
         explorerPresenter.ShowRightHandPanel();
     }
     catch (Exception err)
     {
         explorerPresenter.MainPresenter.ShowError(err);
     }
     explorerPresenter.MainPresenter.ShowMessage("Empty datastore complete", Simulation.MessageType.Information);
     explorerPresenter.MainPresenter.ShowWaitCursor(false);
 }