private void AddElement(EhrRestrictionType restriction) { FormPatListElementEditEHR2014 FormPLEE = new FormPatListElementEditEHR2014(); FormPLEE.Element = new EhrPatListElement2014(); FormPLEE.Element.Restriction = restriction; FormPLEE.IsNew = true; FormPLEE.ShowDialog(); if (FormPLEE.DialogResult == DialogResult.OK) { _elementList.Add(FormPLEE.Element); } 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; } FormPatListElementEditEHR2014 FormPLEE = new FormPatListElementEditEHR2014(); FormPLEE.Element = _elementList[index]; FormPLEE.ShowDialog(); if (FormPLEE.DialogResult == DialogResult.Cancel && FormPLEE.Delete) { _elementList.Remove(_elementList[index]); } FillGrid(); }
private void AddElement(EhrRestrictionType restriction) { FormPatListElementEditEHR2014 FormPLEE=new FormPatListElementEditEHR2014(); FormPLEE.Element=new EhrPatListElement2014(); FormPLEE.Element.Restriction=restriction; FormPLEE.IsNew=true; FormPLEE.ShowDialog(); if(FormPLEE.DialogResult==DialogResult.OK) { _elementList.Add(FormPLEE.Element); } 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; } FormPatListElementEditEHR2014 FormPLEE=new FormPatListElementEditEHR2014(); FormPLEE.Element=_elementList[index]; FormPLEE.ShowDialog(); if(FormPLEE.DialogResult==DialogResult.Cancel && FormPLEE.Delete) { _elementList.Remove(_elementList[index]); } FillGrid(); }