Beispiel #1
0
 private void listViewDivers_ItemChecked(object sender, ItemCheckedEventArgs e)
 {
     CheckIfSubmitButtonBeEnable();
     NewEventPresenter.AddDataGridViewToTabControl(tabControl1, listViewDivers, _diveNo, _diveName, _dataGridViewList, DiveCount_numericUpDown, panel1);
     PanelDrawer.Colorize(this);
     //lägger till en eventhandler till varje DataGridView
     for (int i = 0; i < _dataGridViewList.Count; i++)
     {
         _dataGridViewList[i].EditingControlShowing += new DataGridViewEditingControlShowingEventHandler(DiveTypeInput_dataGridView_EditingControlShowing);
         _dataGridViewList[i].CellEndEdit           += new DataGridViewCellEventHandler(DataGridViewDives_CellEndEdit);
         _dataGridViewList[i].CellBeginEdit         += new DataGridViewCellCancelEventHandler(DataGridViewDives_CellBeginEdit);
     }
 }
Beispiel #2
0
 private void DiveCount_numericUpDown_ValueChanged(object sender, EventArgs e)
 {
     NewEventPresenter.AddDataGridViewToTabControl(tabControl1, listViewDivers, _diveNo, _diveName, _dataGridViewList, DiveCount_numericUpDown, panel1);
     PanelDrawer.Colorize(this);
 }