private void DashboardDesigner1_CustomizeDashboardTitle(object sender, DevExpress.DashboardWin.CustomizeDashboardTitleEventArgs e)
        {
            DashboardToolbarItem itemSave = new DashboardToolbarItem((args) => UseCustomDBSchemaProvider())
            {
                Caption = "Use Custom DBSchema Provider",
            };

            e.Items.Clear();
            e.Items.Add(itemSave);
        }
Пример #2
0
        private void DashboardViewer1_CustomizeDashboardTitle(object sender, DevExpress.DashboardWin.CustomizeDashboardTitleEventArgs e)
        {
            DashboardViewer dashboardViewer = (DashboardViewer)sender;

            DashboardToolbarItem commandButton = new DashboardToolbarItem(dashboardViewer.UseNeutralFilterMode, "NEUTRAL FILTER MODE",
                                                                          new Action <DashboardToolbarItemClickEventArgs>((args) => {
                dashboardViewer.UseNeutralFilterMode = !dashboardViewer.UseNeutralFilterMode;
                dashboardViewer1.DashboardSource     = typeof(Dashboard1);
            }));

            commandButton.Caption = "NEUTRAL FILTER MODE";
            e.Items.Add(commandButton);
        }