protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject() { aHomeworkBot = new HomeworkBot(); MainRibbon mainRibbon = new MainRibbon { aHomeworkBot = aHomeworkBot }; return(mainRibbon); }
private void nbiViewCustomer_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { ucCustomers uc = new ucCustomers() { Dock = DockStyle.Fill }; LoadControl(uc); MainRibbon.MergeRibbon(uc.ribbonControl); MainRibbon.SelectedPage = MainRibbon.MergedRibbon.SelectedPage; }
private void bUsers_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ucUsers uc = new ucUsers() { Dock = DockStyle.Fill }; LoadControl(uc); MainRibbon.MergeRibbon(uc.ribbonControl); MainRibbon.SelectedPage = MainRibbon.MergedRibbon.SelectedPage; }
void LoadDashboard() { ucDashboard uc = new ucDashboard() { Dock = DockStyle.Fill }; LoadControl(uc); MainRibbon.MergeRibbon(uc.ribbonControl1); MainRibbon.SelectedPage = MainRibbon.MergedRibbon.SelectedPage; bClose.Visibility = DevExpress.XtraBars.BarItemVisibility.Never; }
private void nbiViewReports_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { ucReports uc = new ucReports() { Dock = DockStyle.Fill }; LoadControl(uc); MainRibbon.MergeRibbon(uc.ribbonControl1); MainRibbon.SelectedPage = MainRibbon.MergedRibbon.SelectedPage; //uc.rpPreview.Visible = true; //uc.rpPreview.MergeOrder = 2; }
private void DevMen_Executed(object sender, ExecutedRoutedEventArgs e) { MainRibbon.DevMen_Executed(sender, e); }