/// <summary> /// Sets up the initial values for the Window (requires DB to have useful UI) /// </summary> public wndSearch(Main.wndMain currentMainIN) { InitializeComponent(); UpdateUI(); currentMain = currentMainIN; }
//string InvoiceNumSelection = ""; //string InvoiceDateSelection = ""; //string InvoiceTotalCost = ""; public wndSearch(Main.wndMain wndMain) { InitializeComponent(); clsSql = new clsSearchSQL(); clsSL = new clsSearchLogic(); dgInvoices.ItemsSource = clsSql.GetInvoices(); cbInvoiceNum.ItemsSource = clsSql.GetInvoiceNum(); cbInvoiceNum.DisplayMemberPath = nameof(clsSearchLogic.sInvoiceNum); cbInvoiceDate.ItemsSource = clsSql.GetInvoiceDate(); cbInvoiceDate.DisplayMemberPath = nameof(clsSearchLogic.sInvoiceDate); cbTotalCost.ItemsSource = clsSql.GetTotalCost(); cbTotalCost.DisplayMemberPath = nameof(clsSearchLogic.sTotalCost); mainWindow = wndMain; }
/// <summary> /// I believe that this is just to start the DataGrid /// </summary> public wndItems(Main.wndMain wndMain) { InitializeComponent(); mainWindow = wndMain; }