Exemplo n.º 1
0
 /// <summary>
 /// Default constructor for the clsItemsLogic class
 /// </summary>
 public clsItemsLogic()
 {
     try
     {
         dbLink   = new clsItemsSQL();
         itemList = GetItems(ref listLength);
     }
     catch (Exception ex)
     {
         throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." + MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
     }
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// initilizes classes for using sQl
 /// </summary>
 public clsItemsLogic()
 {
     _sql  = new clsItemsSQL();
     _code = _sql.GetLastCode();
 }