Ejemplo n.º 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();
		}
Ejemplo n.º 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();
        }