Example #1
0
 private void InitializeComponent()
 {
     this.components          = new System.ComponentModel.Container();
     this.parametrizedAction1 = new DevExpress.ExpressApp.Actions.ParametrizedAction(this.components);
     //
     // parametrizedAction1
     //
     this.parametrizedAction1.Caption             = "Text Search";
     this.parametrizedAction1.Category            = "RecordsNavigation";
     this.parametrizedAction1.ConfirmationMessage = null;
     this.parametrizedAction1.Id = "TextSearch";
     this.parametrizedAction1.NullValuePrompt = null;
     this.parametrizedAction1.ShortCaption    = null;
     this.parametrizedAction1.ToolTip         = null;
     this.parametrizedAction1.Execute        += new DevExpress.ExpressApp.Actions.ParametrizedActionExecuteEventHandler(this.ParametrizedAction1_Execute);
     //
     // NonPersistentController
     //
     this.Actions.Add(this.parametrizedAction1);
 }
Example #2
0
        public CheckMemoryController()
        {
            startTrackMemoryAction          = new DevExpress.ExpressApp.Actions.SimpleAction(this, "StartTrackMemory", PredefinedCategory.Tools);
            startTrackMemoryAction.Caption  = "StartTrackMemory";
            startTrackMemoryAction.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(action_Execute);

            maxMemoryAction          = new DevExpress.ExpressApp.Actions.ParametrizedAction(this, "MaxMemory", PredefinedCategory.Tools, typeof(int));
            maxMemoryAction.Caption  = "MaxMemory";
            maxMemoryAction.Execute += new DevExpress.ExpressApp.Actions.ParametrizedActionExecuteEventHandler(maxMemoryAction_Execute);

            usedKBAction          = new DevExpress.ExpressApp.Actions.ParametrizedAction(this, "UsedKB", PredefinedCategory.Tools, typeof(int));
            usedKBAction.Caption  = "UsedKB";
            usedKBAction.Execute += UsedKBAction_Execute;

            endTrackMemoryAction          = new DevExpress.ExpressApp.Actions.SimpleAction(this, "EndTrackMemory", PredefinedCategory.Tools);
            endTrackMemoryAction.Caption  = "EndTrackMemory";
            endTrackMemoryAction.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(endTrackMemoryAction_Execute);

            showMemoryAction          = new DevExpress.ExpressApp.Actions.SimpleAction(this, "showMemoryAction", PredefinedCategory.Tools);
            showMemoryAction.Caption  = "showMemoryAction";
            showMemoryAction.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(actionShowMemory_Execute);
        }