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();
        }