private void toolStripLabel5_Click(object sender, EventArgs e) { F_Sheet add_sheet_form = new F_Sheet(); projectRepository.currentScreenMode = ProjectRepository.screenMode.newMode; add_sheet_form.ShowDialog(this); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (dataGridView1.Rows[e.RowIndex].Cells[7].Value == null || dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString() == String.Empty) { return; } else { F_Sheet edit_sheet_form = new F_Sheet(); projectRepository.currentScreenMode = ProjectRepository.screenMode.editMode; edit_sheet_form.ShowDialog(this); } }