Esempio n. 1
0
 /// <summary>
 /// Populates the items combobox with items when the drop down is open.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void itemsComboBox_DropDownOpened(object sender, EventArgs e)
 {
     try
     {
         itemsComboBox.ItemsSource = mainLogic.PopulateAllItems();
         Item_Already_invoiced_Error_label.Visibility = (Visibility)1;
     }
     catch (Exception ex)
     {               //this is reflection
         HandleError(MethodInfo.GetCurrentMethod().DeclaringType.Name,
                     MethodInfo.GetCurrentMethod().Name, ex.Message);
     }
 }