예제 #1
0
        /// <summary>
        ///     initilizes items logic and sql, then fills datagrid with feteched items
        /// </summary>
        public ItemsWindow()
        {
            _items = new List <ItemDescription>();
            _logic = new clsItemsLogic();
            _item  = new ItemDescription();

            InitializeComponent();

            _items = _logic.GetItems();
            DataGridItems.ItemsSource = _items;
        }
예제 #2
0
        /// <summary>
        /// Initialized the wndItems Window
        /// </summary>
        public wndItems()
        {
            try
            {
                InitializeComponent();
                myDBLibrary = new clsItemsSQL();
                myLogic     = new clsItemsLogic();

                ItemDescTableDataGrid.CanUserAddRows = false;

                RefreshItemDataGrid();
            }
            catch (Exception ex)
            {
                HandleError(MethodInfo.GetCurrentMethod().DeclaringType.Name, MethodInfo.GetCurrentMethod().Name, ex.Message);
            }
        }