private void manageRentsButton_Click(object sender, RoutedEventArgs e) { /* Initialize new movie management window and present known movies to the user. */ // RAII. DatabaseManager<TenantDatabase> databaseManager = new DatabaseManager<TenantDatabase>(StringConsts.TenantDatabaseLocation); TenantDatabase tenantDatabase = databaseManager.Locate(); RentManagerWindow rentManagerWindow = new RentManagerWindow(tenantDatabase) { Topmost = true }; rentManagerWindow.ShowDialog(); }
private void manageRentsButton_Click(object sender, RoutedEventArgs e) { /* * Initialize new movie management window and * present known movies to the user. */ // RAII. DatabaseManager <TenantDatabase> databaseManager = new DatabaseManager <TenantDatabase>(StringConsts.TenantDatabaseLocation); TenantDatabase tenantDatabase = databaseManager.Locate(); RentManagerWindow rentManagerWindow = new RentManagerWindow(tenantDatabase) { Topmost = true }; rentManagerWindow.ShowDialog(); }