private void btnNewVendor_Click(object sender, RoutedEventArgs e) { CloseableTab tab = new CloseableTab(); VendorTabs tabcontent = new VendorTabs(); tab.Header = string.Format("{0}: New Vendor", MainTabWindow.Items.Count + 1); tab.Content = tabcontent; tab.IsSelected = true; MainTabWindow.Items.Add(tab); VendorSubMenu.IsOpen = false; }
private void btnStockMan_Click(object sender, RoutedEventArgs e) { CloseableTab tab = new CloseableTab(); StockManager tabcontent = new StockManager(); tab.Header = string.Format("{0}: Stock Manager", MainTabWindow.Items.Count + 1); tab.Content = tabcontent; tab.IsSelected = true; MainTabWindow.Items.Add(tab); StockSubMenu.IsOpen = false; }
private void btnSingleStockWithPurchase_Click(object sender, RoutedEventArgs e) { CloseableTab tab = new CloseableTab(); SingleStockPurchaseTabs tabcontent = new SingleStockPurchaseTabs(); tab.Header = string.Format("{0}: Single Stock with Purchase", MainTabWindow.Items.Count + 1); tab.Content = tabcontent; tab.IsSelected = true; MainTabWindow.Items.Add(tab); StockSubMenu.IsOpen = false; }
private void btnAppSettings_Click(object sender, RoutedEventArgs e) { CloseableTab tab = new CloseableTab(); ApplicationSettings tabcontent = new ApplicationSettings(); tab.Header = string.Format("{0}: Application Settings", MainTabWindow.Items.Count + 1); tab.Content = tabcontent; tab.HorizontalContentAlignment = HorizontalAlignment.Left; tab.VerticalContentAlignment = VerticalAlignment.Top; tab.IsSelected = true; MainTabWindow.Items.Add(tab); AdminSettingsSubMenu.IsOpen = false; }
private void btnReportViewer_Click(object sender, RoutedEventArgs e) { CloseableTab tab = new CloseableTab(); ReportViewer tabcontent = new ReportViewer(); tab.Header = string.Format("{0}: Report Viewer", MainTabWindow.Items.Count + 1); tab.Content = tabcontent; tab.HorizontalContentAlignment = HorizontalAlignment.Left; tab.VerticalContentAlignment = VerticalAlignment.Top; tab.IsSelected = true; MainTabWindow.Items.Add(tab); ReportsSubMenu.IsOpen = false; }
private void btnNewCategory_Click(object sender, RoutedEventArgs e) { CloseableTab tab = new CloseableTab(); NewCategory tabcontent = new NewCategory(); tab.Header = string.Format("{0}: New Category", MainTabWindow.Items.Count + 1); tab.Content = tabcontent; tab.HorizontalContentAlignment = HorizontalAlignment.Left; tab.VerticalContentAlignment = VerticalAlignment.Top; tab.IsSelected = true; MainTabWindow.Items.Add(tab); StockSubMenu.IsOpen = false; }