Example #1
0
        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);
            }
        }
Example #2
0
 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);
         }
     }
 }
Example #3
0
		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);
			}
		}
Example #4
0
		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);
				}
			}
		}