예제 #1
0
        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;
        }
예제 #2
0
        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;
        }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }
예제 #5
0
        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;
        }
예제 #6
0
        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;
        }