private void AddElement(EhrRestrictionType restriction) {
			FormPatListElementEdit2014 FormPLEE=new FormPatListElementEdit2014();
			FormPLEE.Element=new EhrPatListElement2014();
			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)
        {
            FormPatListElementEdit2014 FormPLEE = new FormPatListElementEdit2014();

            FormPLEE.Element             = new EhrPatListElement2014();
            FormPLEE.Element.Restriction = restriction;
            FormPLEE.IsNew = true;
            FormPLEE.ShowDialog();
            if (FormPLEE.DialogResult == DialogResult.OK)
            {
                ElementList.Add(FormPLEE.Element);
            }
            FillGrid();
        }
示例#3
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            int index = gridMain.GetSelectedIndex();

            if (index == -1)
            {
                MessageBox.Show("Please select a data element first.");
                return;
            }
            FormPatListElementEdit2014 FormPLEE = new FormPatListElementEdit2014();

            FormPLEE.Element = ElementList[index];
            FormPLEE.ShowDialog();
            if (FormPLEE.DialogResult == DialogResult.Cancel && FormPLEE.Delete)
            {
                ElementList.Remove(ElementList[index]);
            }
            FillGrid();
        }
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			int index=gridMain.GetSelectedIndex();
			if(index==-1) {
				MessageBox.Show("Please select a data element first.");
				return;
			}
			FormPatListElementEdit2014 FormPLEE=new FormPatListElementEdit2014();
			FormPLEE.Element=ElementList[index];
			FormPLEE.ShowDialog();
			if(FormPLEE.DialogResult==DialogResult.Cancel && FormPLEE.Delete) {
				ElementList.Remove(ElementList[index]);
			}
			FillGrid();
		}