Пример #1
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            FormPharmacyEdit FormPE = new FormPharmacyEdit();

            FormPE.PharmCur       = new Pharmacy();
            FormPE.PharmCur.IsNew = true;
            FormPE.ShowDialog();
            FillGrid();
            changed = true;
        }
Пример #2
0
 private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
 {
     if (IsSelectionMode)
     {
         SelectedPharmacyNum = _listPharmacies[e.Row].PharmacyNum;
         DialogResult        = DialogResult.OK;
         return;
     }
     else
     {
         FormPharmacyEdit FormP = new FormPharmacyEdit();
         FormP.PharmCur = _listPharmacies[e.Row];
         FormP.ShowDialog();
         FillGrid();
         changed = true;
     }
 }
Пример #3
0
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			if(IsSelectionMode){
				SelectedPharmacyNum=PharmacyC.Listt[e.Row].PharmacyNum;
				DialogResult=DialogResult.OK;
				return;
			}
			else{
				FormPharmacyEdit FormP=new FormPharmacyEdit();
				FormP.PharmCur=PharmacyC.Listt[e.Row];
				FormP.ShowDialog();
				FillGrid();
				changed=true;
			}
		}
Пример #4
0
		private void butAdd_Click(object sender, System.EventArgs e) {
			FormPharmacyEdit FormPE=new FormPharmacyEdit();
			FormPE.PharmCur=new Pharmacy();
			FormPE.PharmCur.IsNew=true;
			FormPE.ShowDialog();
			FillGrid();
			changed=true;
		}