public wndMain()
 {
     itemList     = new ObservableCollection <clsItem>();
     item         = new clsItemsLogic();
     lineItemList = new ObservableCollection <clsItem>();
     currItem     = new clsItem();
     InitializeComponent();
 }
        /// <summary>
        /// Populates all items.
        /// </summary>
        /// <returns></returns>
        internal ObservableCollection <Item> PopulateAllItems()
        {
            var items = new clsItemsLogic();

            try
            {
                return(items.getItems());
            }
            catch (Exception ex)
            {                       //this is reflection for exception handling
                throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." +
                                    MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
            }
        }