private void butResults_Click(object sender, EventArgs e) { if (gridMain.Rows.Count < 1) { MessageBox.Show(Lans.g(this, "Please add a data element.")); return; } //bool hasOrder=false; //for(int i=0;i<ElementList.Count;i++) { // if(hasOrder && ElementList[i].OrderBy) { // MessageBox.Show(Lans.g(this,"You can only 'Order By' exactly one data element.")); // return; // } // if(ElementList[i].OrderBy) { // hasOrder=true; // } //} FormPatListResultsEHR2014 FormPLR14 = new FormPatListResultsEHR2014(_elementList); FormPLR14.ShowDialog(); }
private void butResults_Click(object sender,EventArgs e) { if(gridMain.Rows.Count<1) { MessageBox.Show(Lans.g(this,"Please add a data element.")); return; } //bool hasOrder=false; //for(int i=0;i<ElementList.Count;i++) { // if(hasOrder && ElementList[i].OrderBy) { // MessageBox.Show(Lans.g(this,"You can only 'Order By' exactly one data element.")); // return; // } // if(ElementList[i].OrderBy) { // hasOrder=true; // } //} FormPatListResultsEHR2014 FormPLR14=new FormPatListResultsEHR2014(_elementList); FormPLR14.ShowDialog(); }