예제 #1
0
 private void listPlans_DoubleClick(object sender, System.EventArgs e)
 {
     if (listPlans.SelectedIndex == -1)
     {
         return;
     }
     if (PatPlans.GetCountForPatAndInsSub(SubList[listPlans.SelectedIndex].InsSubNum, _patNum) != 0)
     {
         MsgBox.Show(this, "This patient already has this plan attached.  If you would like to add a new plan for the same subscriber and insurance carrier, click new plan.");
         return;
     }
     SelectedInsSubNum = SubList[listPlans.SelectedIndex].InsSubNum;
     DialogResult      = DialogResult.OK;
 }