/// <summary> /// Update the datasource when a new project is created. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ARA_Events_NewProjectCreatedEventHandler(object sender, NewProjectCreatedEvent e) { this.copyRisksComboBoxProjects.DataSource = this.tbl_Risk_AnalysisTableAdapter.GetData(); copyRisksComboBoxProjects_SelectedIndexChanged(new object(), new EventArgs()); }
/// <summary> /// Trigger when a new project is created, to keep the datagrid up to date. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ARA_Events_NewProjectCreatedEventHandler(object sender, NewProjectCreatedEvent e) { //Update the datagrid datasource. this.projectRevisionDataGrid.DataSource = this.get_Projects_For_ProjectRevisionTableAdapter.GetData(); }
/// <summary> /// Handler when the user creates a new project, so the datagrid gets updated. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ARA_Events_NewProjectCreatedEventHandler(object sender, NewProjectCreatedEvent e) { this.OpenProjectDataGrid.DataSource = this.get_Projects_With_RevisionTableAdapter.GetData(); OpenProjectDataGrid_RowsAdded(new object(), new DataGridViewRowsAddedEventArgs(0, 0)); }
private void ARA_Events_NewProjectCreatedEventHandler(object sender, NewProjectCreatedEvent e) { this.recentProjectsDataGrid.DataSource = this.get_Recent_Risk_ProjectsTableAdapter.GetData(this.amountOfRecentProjectsToShow); recentProjectsDataGrid_RowsAdded(new object(), new DataGridViewRowsAddedEventArgs(0, 0)); }