/// <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(); }
/// <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(); }
public void ShowDatabaseDialog() { DatabaseView dbv = new DatabaseView(); dbv.DataContext = this; dbv.ShowDialog(); }