/// <summary>
 /// Instantiates classes
 /// </summary>
 public clsItemsLogic()
 {
     try
     {
         clsSQL = new clsItemsSQL();
         clsDA  = new clsDataAccess();
     }
     catch (Exception ex)
     {
         throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." +
                             MethodInfo.GetCurrentMethod().Name + " ->" + ex.Message);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public clsItemsLogic()
 {
     try
     {
         SQL = new clsItemsSQL();
         //Initialize the items collection to all the items
         _Items = SQL.GetAllItems();
     }
     catch (Exception ex)
     {
         throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." +
                             MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
     }
 }