private void navBarControl_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { if (e.Link.Caption == "Tickets") { //Tickets ribbonPage.Visible = false; navigationFrame.SelectedPage = navigationPage1; } else if (e.Link.Caption == "Customers") { //Customer ribbonPage.Visible = false; navigationFrame.SelectedPage = navigationPage3; } else if (e.Link.Caption == "Employees") { //OrderTaker ribbonPage.Visible = false; navigationFrame.SelectedPage = navigationPage2; } else if (e.Link.Caption == "Reports") { ribbonPage.Visible = false; navigationFrame.SelectedPage = navigationPage5; } else if (e.Link.Caption == "Mapping") { PickupMaster pickupMaster = new PickupMaster(); pickupMaster.ShowDialog(); } }
private void officeNavigationBar_ItemClick(object sender, NavigationBarItemEventArgs e) { if (e.Item.Text == "Tickets") { //Tickets ribbonPage.Visible = false; navigationFrame.SelectedPage = navigationPage1; } else if (e.Item.Text == "Customers") { //Customer ribbonPage.Visible = false; navigationFrame.SelectedPage = navigationPage3; } else if (e.Item.Text == "Employees") { //OrderTaker ribbonPage.Visible = false; navigationFrame.SelectedPage = navigationPage2; } else if (e.Item.Text == "Reports") { ribbonPage.Visible = false; navigationFrame.SelectedPage = navigationPage5; } else if (e.Item.Text == "Mapping") { PickupMaster pickupMaster = new PickupMaster(); pickupMaster.ShowDialog(); } else if (e.Item.Text == "Logout") { DialogResult dialogResult = MessageBox.Show("Are you Sure to Logout?", "Logout?", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { Application.Restart(); } } }
private void navBarItem11_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { PickupMaster pickupMaster = new PickupMaster(); pickupMaster.Show(); }