public override bool ApplyChanges() { try { _testState.StoreXml(_view.Xml, this); return(true); } catch (Exception e) { _messageBox.ShowAlert("Could not save Xml", e.ToString()); return(false); } }
// virtual for testing public virtual bool SaveChanges() { if (_presenter.ApplyChanges()) { try { _service.Save(_test); _stateManager.RecordSnapshot(); return(true); } catch (Exception e) { _messageBox.ShowAlert("Save Failed!", "System Failure\n" + e.ToString()); return(false); } } return(false); }