Exemple #1
0
        public HTMLViewerActionController()
        {
            SimpleAction action = new DevExpress.ExpressApp.Actions.SimpleAction();

            action.Caption  = "Set HTML5 viewer";
            action.Category = "View";
            action.Id       = "enableHTML5viewer";
            action.Execute += action_Execute;

            RegisterActions(new ActionBase[] { action });
        }
Exemple #2
0
        public ExportVisibleActionController()
        {
            IContainer   components        = new System.ComponentModel.Container();
            SimpleAction showExportActions = new DevExpress.ExpressApp.Actions.SimpleAction(components);

            showExportActions.Caption  = "Show export actions";
            showExportActions.Category = "View";
            showExportActions.Id       = "showExportAction";
            showExportActions.Execute += new SimpleActionExecuteEventHandler(this.showExportActions_Execute);

            RegisterActions(components);
        }
Exemple #3
0
        public DisablePopupController()
        {
            IContainer   components   = new System.ComponentModel.Container();
            SimpleAction disablePopup = new DevExpress.ExpressApp.Actions.SimpleAction(components);

            disablePopup.Caption  = "Disable Popup";
            disablePopup.Category = "View";
            disablePopup.Id       = "disablePopupAction";
            disablePopup.Execute += disablePopup_Execute;

            RegisterActions(components);
        }
Exemple #4
0
        public ScriptController()
        {
            this.TargetObjectType = typeof(Script);
            this.TargetViewType   = ViewType.DetailView;

            this.components = new System.ComponentModel.Container();
            this.saCompile  = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
            this.scDetectLocalAssemblyReferences = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
            this.saRunScript = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
            //
            // saCompile
            //
            this.saCompile.Caption             = "Compile";
            this.saCompile.ConfirmationMessage = null;
            this.saCompile.Id        = "d71a4da4-e86e-4688-94f7-d0acf0591b1d";
            this.saCompile.ToolTip   = null;
            this.saCompile.Execute  += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.saCompile_Execute);
            this.saCompile.ImageName = "Properties";
            //
            // scDetectLocalAssemblyReferences
            //
            this.scDetectLocalAssemblyReferences.Caption             = "Detect Local Assembly References";
            this.scDetectLocalAssemblyReferences.ConfirmationMessage = null;
            this.scDetectLocalAssemblyReferences.Id        = "3f2bdf2c-a7c3-448c-b1aa-c44fc7041558";
            this.scDetectLocalAssemblyReferences.ToolTip   = null;
            this.scDetectLocalAssemblyReferences.Execute  += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.scDetectLocalAssemblyReferences_Execute);
            this.scDetectLocalAssemblyReferences.ImageName = "ArrangeGroups";
            //
            // saRunScript
            //
            this.saRunScript.Caption             = "Run Script";
            this.saRunScript.ConfirmationMessage = null;
            this.saRunScript.Id        = "9f0e8713-0411-44d1-85b9-540203b5dcee";
            this.saRunScript.ToolTip   = null;
            this.saRunScript.Execute  += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.saRunScript_Execute);
            this.saRunScript.ImageName = "Action_Debug_Start";
            //
            // ScriptViewController
            //
            this.Actions.Add(this.saCompile);
            this.Actions.Add(this.scDetectLocalAssemblyReferences);
            this.Actions.Add(this.saRunScript);

            SimpleAction TestAction = new SimpleAction(this, "TestAction", PredefinedCategory.View);

            TestAction.Caption  = "Test Action";
            TestAction.Execute += TestAction_Execute;
        }