Esempio n. 1
0
 private void BtnSearchPayDate_Click(object sender, EventArgs e)
 {
     try
     {
         using (DBAuditDataContext dc = new DBAuditDataContext())
         {
             // Search progress:
             var c = dc.ProGetDoctorBillByPayDate(DatePay.Value.Date);
             GrdViewDoctorBills.DataSource = c;
             // Formatting the form
             BtnSearchDocNo.Enabled    = false;
             BtnSearchLocation.Enabled = false;
             BtnSearchDoctor.Enabled   = false;
             TxtDocNo.Text             = "";
             ComboLocation.Text        = "";
             ComboDoctor.Text          = "";
         }
     }
     catch (Exception EX)
     {
         MessageBox.Show(EX.Message);
     }
 }