Exemplo n.º 1
0
        /// <summary>
        /// Initializer
        /// </summary>
        public wndItems()
        {
            try
            {
                InitializeComponent();

                isEditing  = false;
                isAdding   = false;
                isDeleting = false;
                itemLogic  = new clsItemsLogic();
                item       = new Item();
                ItemCodeTextBox.IsEnabled        = false;
                ItemDescriptionTextBox.IsEnabled = false;
                ItemCostTextBox.IsEnabled        = false;
                loadItems();
            }

            catch (Exception ex)
            {
                throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." + MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
            }
        }
Exemplo n.º 2
0
 public wndItems()
 {
     InitializeComponent();
     itemsLogic = new clsItemsLogic();
     fillDataGrid();
 }