/// <summary> /// Closes the <see cref="DatabaseView"/> without saving. /// </summary> /// <param name="view">The view to close.</param> public void Cancel(DatabaseView view) { TempDatabase.CopyData(ProjectDatabase); view.Close(); }
/// <summary> /// Saves the database data and closes the <see cref="DatabaseView"/>. /// </summary> /// <param name="view">The view to close.</param> public void SaveAndClose(DatabaseView view) { ProjectDatabase.CopyData(TempDatabase); view.Close(); }