public void EmptyDataStore(object sender, EventArgs e) { try { storage.Writer.Empty(); explorerPresenter.HideRightHandPanel(); explorerPresenter.ShowRightHandPanel(); } catch (Exception err) { explorerPresenter.MainPresenter.ShowError(err); } }
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); }