예제 #1
0
		private void AddElement(EhrRestrictionType restriction) {
			FormEhrPatListElementEdit FormPLEE=new FormEhrPatListElementEdit();
			FormPLEE.Element=new EhrPatListElement();
			FormPLEE.Element.Restriction=restriction;
			FormPLEE.IsNew=true;
			FormPLEE.ShowDialog();
			if(FormPLEE.DialogResult==DialogResult.OK) {
				ElementList.Add(FormPLEE.Element);
			}
			FillGrid();
		}
예제 #2
0
        private void AddElement(EhrRestrictionType restriction)
        {
            FormEhrPatListElementEdit FormPLEE = new FormEhrPatListElementEdit();

            FormPLEE.Element             = new EhrPatListElement();
            FormPLEE.Element.Restriction = restriction;
            FormPLEE.IsNew = true;
            FormPLEE.ShowDialog();
            if (FormPLEE.DialogResult == DialogResult.OK)
            {
                ElementList.Add(FormPLEE.Element);
            }
            FillGrid();
        }