예제 #1
0
 /// <summary>
 /// Calls the db when the combobox is opened to populate with the latest avaible invoices
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void invoiceComboBox_DropDownOpened(object sender, EventArgs e)
 {
     try
     {
         invoiceComboBox.ItemsSource      = mainLogic.PopulateInvoiceNumOnDate();
         invoiceSavedLabel.Visibility     = (Visibility)1;
         invoice_Deleted_Label.Visibility = (Visibility)1;
     }
     catch (Exception ex)
     {               //this is reflection
         HandleError(MethodInfo.GetCurrentMethod().DeclaringType.Name,
                     MethodInfo.GetCurrentMethod().Name, ex.Message);
     }
 }