private void gridObservations_CellDoubleClick(object sender,UI.ODGridClickEventArgs e) {
			EhrAptObs obs=(EhrAptObs)gridObservations.Rows[e.Row].Tag;
			FormEhrAptObsEdit formE=new FormEhrAptObsEdit(obs);
			if(formE.ShowDialog()==DialogResult.OK) {
				if(obs.EhrAptObsNum!=0) {//Was not deleted.
					EhrAptObses.Update(obs);
				}
				FillGridObservations();
			}
		}
Esempio n. 2
0
        private void gridObservations_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            EhrAptObs         obs   = (EhrAptObs)gridObservations.ListGridRows[e.Row].Tag;
            FormEhrAptObsEdit formE = new FormEhrAptObsEdit(obs);

            if (formE.ShowDialog() == DialogResult.OK)
            {
                if (obs.EhrAptObsNum != 0)               //Was not deleted.
                {
                    EhrAptObses.Update(obs);
                }
                FillGridObservations();
            }
        }
Esempio n. 3
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            EhrAptObs obs = new EhrAptObs();

            obs.IsNew  = true;
            obs.AptNum = _appt.AptNum;
            FormEhrAptObsEdit formE = new FormEhrAptObsEdit(obs);

            if (formE.ShowDialog() == DialogResult.OK)
            {
                EhrAptObses.Insert(obs);
                FillGridObservations();
            }
        }
		private void butAdd_Click(object sender,EventArgs e) {
			EhrAptObs obs=new EhrAptObs();
			obs.IsNew=true;
			obs.AptNum=_appt.AptNum;
			FormEhrAptObsEdit formE=new FormEhrAptObsEdit(obs);
			if(formE.ShowDialog()==DialogResult.OK) {
				EhrAptObses.Insert(obs);
				FillGridObservations();
			}
		}