/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } if (disposing && (UserDataPersistenceService != null)) { UserDataPersistenceService.SaveUserData(this); } base.Dispose(disposing); }
protected override void OnTerminated() { _userDataPersistenceService.SaveUserData(_view); _userDataPersistenceService.SaveUserData(_detailLayoutView); base.OnTerminated(); }