private void cm_Item_DropDownOpened(object sender, EventArgs e)
 {
     try
     {
         cm_Item.ItemsSource = inManager.populateItemList();
         // add item code, desc and txtitemcost
         txtItemCode.Text =
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         Console.WriteLine(ex);
     }
     //throw new NotImplementedException();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Updates the items in the list each time the list is opened.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cm_Item_DropDownOpened(object sender, EventArgs e)
        {
            try
            {
                cm_Item.ItemsSource = inManager.populateItemList();

                //Set Selected row
                btn_Add.IsEnabled = true;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                Console.WriteLine(ex);
            }
        }