private void ClickCreateProjectTile(object sender, EventArgs e) { ProjectManage createProjectForm = new ProjectManage(_presentationModel); if (createProjectForm.ShowDialog() == DialogResult.OK) { InitializeProjectGrid(); InitializeWaitComfirmGridView(); RefreshComfirmComboBox(); } RefreshComboBox(); }
private void ClickPMSGridViewCell(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { switch (e.ColumnIndex) { case 4: ProjectManage projectManageForm = new ProjectManage(_presentationModel, _projectGrid.Rows[e.RowIndex].Cells[1].Value.ToString(), _projectGrid.Rows[e.RowIndex].Cells[2].Value.ToString()); if (projectManageForm.ShowDialog() == DialogResult.OK) InitializeProjectGrid(); break; case 5: _presentationModel.DeleteProject(_projectGrid.Rows[e.RowIndex].Cells[1].Value.ToString()); InitializeProjectGrid(); break; default: break; } RefreshComboBox(); } }