private void butAdd_Click(object sender, EventArgs e) { FormElectIDEdit FormEdit = new FormElectIDEdit(); FormEdit.electIDCur = new ElectID(); FormEdit.electIDCur.IsNew = true; if (FormEdit.ShowDialog() == DialogResult.OK) { FillElectIDs(FormEdit.electIDCur.ElectIDNum); } }
private void gridElectIDs_CellDoubleClick(object sender, ODGridClickEventArgs e) { if (IsSelectMode) { selectedID = _listElectIDs[e.Row]; DialogResult = DialogResult.OK; } else { FormElectIDEdit FormEdit = new FormElectIDEdit(); FormEdit.electIDCur = _listElectIDs[e.Row]; if (FormEdit.ShowDialog() == DialogResult.OK) { FillElectIDs(FormEdit.electIDCur.ElectIDNum); } } }
private void butAdd_Click(object sender,EventArgs e) { FormElectIDEdit FormEdit=new FormElectIDEdit(); FormEdit.electIDCur=new ElectID(); FormEdit.electIDCur.IsNew=true; if(FormEdit.ShowDialog()==DialogResult.OK) { FillElectIDs(FormEdit.electIDCur.ElectIDNum); } }
private void gridElectIDs_CellDoubleClick(object sender,ODGridClickEventArgs e) { if(IsSelectMode) { selectedID=ElectIDs.List[e.Row]; DialogResult=DialogResult.OK; } else { FormElectIDEdit FormEdit=new FormElectIDEdit(); FormEdit.electIDCur=ElectIDs.List[e.Row]; if(FormEdit.ShowDialog()==DialogResult.OK) { FillElectIDs(FormEdit.electIDCur.ElectIDNum); } } }