public wndItems() { InitializeComponent(); SQLCalls = new clsItemsSQL(); itemsLogic = new clsItemsLogic(SQLCalls); //call get items in logic - apply to cbItems.ItemsSource }
/// <summary> /// costructor /// </summary> public wndItems() { try { InitializeComponent(); itemsLogic = new clsItemsLogic(this); cbItems.ItemsSource = itemsLogic.GetItems(); } catch (Exception ex) { //This is the top level method so we want to handle the exception HandleError(MethodInfo.GetCurrentMethod().DeclaringType.Name, MethodInfo.GetCurrentMethod().Name, ex.Message); } }