Пример #1
0
        public MainWindow()
        {
            _mainLogic = new clsMainLogic();
            _mainSql   = new clsMainSql();
            _items     = new List <LineItems>();

            InitializeComponent();
            _lineItemId = _mainSql.GetLargestLineItemId();
            SelectItemComboBox.ItemsSource = _mainSql.GetAllItems();
            ItemDataGrid.ItemsSource       = _items;
        }
Пример #2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public wndMain()
 {
     try
     {
         InitializeComponent();
         logic = new clsMainLogic();
         dataGridLineItems.Items.Clear();
         dataGridLineItems.ItemsSource     = logic.lineItems;
         comboBoxItemSelection.ItemsSource = logic.itemList;
         setScreenControls(false);
     }
     catch (Exception ex)
     {
         HandleError(MethodInfo.GetCurrentMethod().DeclaringType.Name, MethodInfo.GetCurrentMethod().Name, ex.Message);
     }
 }