private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { MainField.SelectTab(MainTab1); BusinessTabs.SelectTab(BusinessEmployees); }
//SIDEBAR TREE VIEW NAVIGATION private void treeView1_AfterSelect_1(object sender, TreeViewEventArgs e) { switch (e.Node.Text) { //Business case "Business": MainField.SelectTab(MainTab1); break; case "Product Warehouse": MainField.SelectTab(MainTab1); BusinessTabs.SelectTab(BusinessProductWarehouse); break; case "Transactions": MainField.SelectTab(MainTab1); BusinessTabs.SelectTab(BusinessTransactions); break; case "Employees": MainField.SelectTab(MainTab1); BusinessTabs.SelectTab(BusinessEmployees); break; case "Vehicles": MainField.SelectTab(MainTab1); BusinessTabs.SelectTab(BusinessVehicles); break; //City case "City": MainField.SelectTab(MainTab2); break; case "City List": MainField.SelectTab(MainTab2); CityTabs.SelectTab(CityList); break; case "Revenue by City": MainField.SelectTab(MainTab2); CityTabs.SelectTab(RevenueByCity); break; case "Item Sales by City": MainField.SelectTab(MainTab2); CityTabs.SelectTab(ItemSalesByCity); break; //Machine case "Machine": MainField.SelectTab(MainTab3); break; case "All Machines": MainField.SelectTab(MainTab3); MachineTabs.SelectTab(AllMachines); break; case "Items by Machine": MainField.SelectTab(MainTab3); MachineTabs.SelectTab(ItemsByMachine); break; } }