Пример #1
0
        protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
        {
            aHomeworkBot = new HomeworkBot();

            MainRibbon mainRibbon = new MainRibbon
            {
                aHomeworkBot = aHomeworkBot
            };

            return(mainRibbon);
        }
Пример #2
0
        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;
        }
Пример #3
0
        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;
        }
Пример #4
0
        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;
        }
Пример #5
0
        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;
        }
Пример #6
0
 private void DevMen_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     MainRibbon.DevMen_Executed(sender, e);
 }