/// <summary> /// Initializes wndSearch /// </summary> public wndSearch(wndMain main) { try { InitializeComponent(); mainWindow = main; searchLogic = new clsSearchLogic(); Start(); } catch (Exception ex) { throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." + MethodInfo.GetCurrentMethod().Name + " ->" + ex.Message); } }
/// <summary> /// Default constructor /// </summary> /// <param name="wndMain"></param> public wndSearch() { try { InitializeComponent(); SL = new clsSearchLogic(); InvoiceList.ItemsSource = SL.Invoices; InvoiceTotalCmb.ItemsSource = SL.Totals; InvoiceDateCmb.ItemsSource = SL.Dates; InvoiceNumCmb.ItemsSource = SL.Numbers; } catch (Exception ex) { HandleError(MethodInfo.GetCurrentMethod().DeclaringType.Name, MethodInfo.GetCurrentMethod().Name, ex.Message); } }