Exemplo 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();
		}
Exemplo n.º 2
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;
			}
			FormEhrPatListElementEdit FormPLEE=new FormEhrPatListElementEdit();
			FormPLEE.Element=ElementList[index];
			FormPLEE.ShowDialog();
			if(FormPLEE.DialogResult==DialogResult.Cancel && FormPLEE.Delete) {
				ElementList.Remove(ElementList[index]);
			}
			FillGrid();
		}
Exemplo n.º 3
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();
        }
Exemplo n.º 4
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;
            }
            FormEhrPatListElementEdit FormPLEE = new FormEhrPatListElementEdit();

            FormPLEE.Element = ElementList[index];
            FormPLEE.ShowDialog();
            if (FormPLEE.DialogResult == DialogResult.Cancel && FormPLEE.Delete)
            {
                ElementList.Remove(ElementList[index]);
            }
            FillGrid();
        }