public wndItems()
        {
            InitializeComponent();
            SQLCalls   = new clsItemsSQL();
            itemsLogic = new clsItemsLogic(SQLCalls);

            //call get items in logic - apply to cbItems.ItemsSource
        }
Exemplo n.º 2
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="window">the refernec to the items window</param>
 public clsItemsLogic(wndItems window)
 {
     try
     {
         SQL         = new clsItemsSQL();
         data        = new clsDataAccess();
         wnd         = window;
         sNewCode    = "A";
         cInsertCode = 'A';
         Items       = new ObservableCollection <clsItem>();
     }
     catch (Exception ex)
     {
         throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." + MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
     }
 }
 public clsItemsLogic(clsItemsSQL SQLCalls)
 {
     this.SQLCalls = SQLCalls;
 }