/// <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); } }
/// <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); } }
/// <summary> /// initilizes classes for using sQl /// </summary> public clsItemsLogic() { _sql = new clsItemsSQL(); _code = _sql.GetLastCode(); }