public ProjectTaskController() { TargetObjectType = typeof(ProjectTask); TargetViewType = ViewType.Any; SimpleAction markCompletedAction = new SimpleAction( this, "MarkCompleted", DevExpress.Persistent.Base.PredefinedCategory.RecordEdit) { TargetObjectsCriteria = ( CriteriaOperator.Parse("Status != ?", ProjectTaskStatus.Completed) ).ToString(), ConfirmationMessage = "Are you sure you want to mark the selected task(s) as 'Completed'?", ImageName = "State_Task_Completed" }; markCompletedAction.Execute += (s, e) => { foreach (ProjectTask task in e.SelectedObjects) { task.EndDate = DateTime.Now; task.Status = ProjectTaskStatus.Completed; View.ObjectSpace.SetModified(task); } View.ObjectSpace.CommitChanges(); View.ObjectSpace.Refresh(); }; }
public SubSystemNavigationController() { InitializeComponent(); TargetWindowType = WindowType.Main; //TargetViewNesting = Nesting.Root; var list = new List<SimpleAction>(); for (int i = 0; i <= 20; i++) { var action = new SimpleAction(this.Container); action.Id = "SubSystem" + i; action.Active["InUse"] = true; action.Execute += Action_Execute; action.PaintStyle = ActionItemPaintStyle.CaptionAndImage; if (AdmiralEnvironment.IsWindows) action.Category = "ViewsNavigation"; if (AdmiralEnvironment.IsWeb) action.Category = "Security"; list.Add(action); this.Actions.Add(action); } RegisterActions(list.ToArray()); }
public ResetSettingsViewController() { TargetViewNesting = Nesting.Root; ResetViewSettingsAction = new SimpleAction(this, "ResetViewSettings", DevExpress.Persistent.Base.PredefinedCategory.View); ResetViewSettingsAction.ImageName = "Attention"; ResetViewSettingsAction.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.ResetViewSettingsAction_Execute); }
public SendConfigController() { var myAction = new SimpleAction(this, "Share Configuration", DevExpress.Persistent.Base.PredefinedCategory.Tools); myAction.Execute += myAction_Execute; myAction.ImageName = "BO_Contact"; Actions.Add(myAction); }
protected ImportWizViewControllerBase() { TargetViewType = ViewType.ListView; _importAction = new SimpleAction(this, "ImportWizardWinActionId","Export") { Caption = "Import from...", ImageName = "Import", }; _importAction.Execute += ImportAction_Execute; }
public UpdateConfigController() { var myAction = new SimpleAction(this, "Update Configuration", DevExpress.Persistent.Base.PredefinedCategory.Tools); myAction.Execute += myAction_Execute; myAction.ImageName = "ModelEditor_Action_Modules"; Actions.Add(myAction); }
void ExecuteAction(SimpleAction action, bool executedAndDisable) { action.Active[ArtifactStateCustomizationViewController.ActiveObjectTypeHasRules] = true; if (action.Active){ action.DoExecute(); } if (executedAndDisable) action.Active[ArtifactStateCustomizationViewController.ActiveObjectTypeHasRules] = false; }
public ViewEditModeController() { _editAction = new SimpleAction(this, "SwitchToEditMode", PredefinedCategory.RecordEdit); _editAction.Execute+=EditActionOnExecute; _editAction.Caption = "Edit"; _editAction.SelectionDependencyType = SelectionDependencyType.RequireSingleObject; _editAction.ImageName = "MenuBar_Edit"; _editAction.Active["ViewEditMode"] = false; }
public UpdateConnectionStringController() { var myAction = new SimpleAction(this, "Update Connection String", DevExpress.Persistent.Base.PredefinedCategory.Tools); myAction.Execute += myAction_Execute; myAction.ImageName = "Action_ResetPassword"; Actions.Add(myAction); }
static void button_action(bool bEnable, Color col, SimpleAction action) { using (new GUIBackgroundColorScope(col)) { EditorGUI.BeginDisabledGroup(!bEnable); action(); EditorGUI.EndDisabledGroup(); } }
public ThrowExceptionController() { TargetViewId = "ExceptionHandling_DetailView"; var simpleAction = new SimpleAction(this, "Throw Exception", PredefinedCategory.ObjectsCreation); simpleAction.Execute += SimpleActionOnExecute; simpleAction = new SimpleAction(this, "Throw Validation Exception", PredefinedCategory.ObjectsCreation); simpleAction.Execute += SimpleActionOnExecute; }
public ScriptObjectController() { scriptObjectAction = new SimpleAction(this, "ScriptObjectAction", PredefinedCategory.Tools); scriptObjectAction.Caption = "Generate Script"; scriptObjectAction.Execute += scriptObjectAction_Execute; scriptObjectAction.SelectionDependencyType = SelectionDependencyType.RequireSingleObject; RegisterActions(scriptObjectAction); }
public ViewController() { var importXmlAction = new SimpleAction {Id = "ImportXml",Caption = "ImportXml",Category = PredefinedCategory.Export.ToString()}; Actions.Add(importXmlAction); importXmlAction.Execute+=ImportXmlActionOnExecute; InitializeComponent(); RegisterActions(components); }
public TwilioAccountController() { this.TargetObjectType = typeof(TwilioAccount); this.TargetViewType = ViewType.DetailView; this.syncPhoneNumbers = new SimpleAction(this, "SyncPhoneNumbers", PredefinedCategory.View); syncPhoneNumbers.Caption = "Sync Phone Numbers"; //syncPhoneNumbers.ImageName = "BO_Unknow"; syncPhoneNumbers.Execute += SyncPhoneNumbers_Execute; }
protected PessimisticLockingViewController() { _unlockObjectShipAction = new SimpleAction(this, "UnLockObject", PredefinedCategory.RecordEdit) { Caption = "UnLock" }; _unlockObjectShipAction.Execute += SimpleActionOnExecute; _unlockObjectShipAction.SelectionDependencyType = SelectionDependencyType.RequireSingleObject; _unlockObjectShipAction.Active[PessimisticLocking] = false; }
public ActionInPopupController() { SimpleAction actionInPopup = new SimpleAction(this, "ActionInPopup", DevExpress.Persistent.Base.PredefinedCategory.PopupActions ); //Dennis: Refer to the http://documentation.devexpress.com/#Xaf/CustomDocument2815 help article to see how to reorder Actions within the PopupActions container. actionInPopup.Execute += actionInPopup_Execute; }
public GenLedgerListViewController() { TargetObjectType = typeof(GenLedger); TargetViewType = ViewType.ListView; var genJnlAction = new SimpleAction(this, "GenJnlAction", DevExpress.Persistent.Base.PredefinedCategory.Edit); genJnlAction.Caption = "Generate Journals"; genJnlAction.Execute += genJnlAction_Execute; }
public SimpleActionConfirmationMessageNotEmptyController() { targetProperty = "ConfirmationMessageNotEmpty"; SimpleAction simpleAction = new SimpleAction(this, "SimpleAction" + targetProperty, PredefinedCategory.Edit); simpleAction.ConfirmationMessage = ActionsDemoStrings.ConfirmationMessage; simpleAction.Execute += new SimpleActionExecuteEventHandler(SimpleActionRootObject.simpleAction_Execute); simpleAction.Caption = ActionsDemoStrings.ConfirmationMessageNotEmpty; simpleAction.ToolTip = ActionsDemoStrings.ConfirmationMessageNotEmptyTooltip; }
public MasterDetail() { TargetObjectType = typeof(Master); var singleChoiceAction = new SimpleAction(this, "CreateMaster", PredefinedCategory.View) { Caption = "Create" }; singleChoiceAction.Execute += SingleChoiceActionOnExecute; }
public ImportVendorSitePaymentTermsViewController() { TargetObjectType = typeof(ImportVendorSitePaymentTermsParam); TargetViewType = ViewType.DetailView; var importAction = new SimpleAction(this, "ImportVendorSitePaymentTermsAction", PredefinedCategory.ObjectsCreation); importAction.Caption = "Import"; importAction.Execute += ImportAction_Execute; }
public ImportForexParamViewController() { TargetObjectType = typeof(ImportForexRatesParam); TargetViewType = ViewType.DetailView; var importAction = new SimpleAction(this, "ImportWbcForexRatesAction", PredefinedCategory.ObjectsCreation); importAction.Caption = "Run Import"; importAction.Execute += ImportAction_Execute; }
public void DoSimpleAction(String action) { if (adapter != null) { Debug.Log("%%%%%%%%%%%%%% Calling DoSimpleAction: " + action); SimpleAction pa = new SimpleAction(); pa.action = action; DoModelAction(pa); } }
public static void Button(Rect rect, bool bEnable, Color color, string name, SimpleAction action) { button_action(bEnable, color, () => { if (GUI.Button(rect, name)) { action(); } }); }
public OneViewDialogController() { AcceptAction.ActionMeaning = ActionMeaning.Unknown; var simpleAction = new SimpleAction(this, "DeleteAllObjects", PredefinedCategory.PopupActions) { Caption = "Clear" }; simpleAction.Executed += SimpleActionOnExecuted; }
protected ImportWizViewControllerBase() { TargetViewType = ViewType.ListView; _importAction = new SimpleAction(this, "ImportWizardWinActionId", "Export") { Caption = "Import from...", ImageName = "Import", }; _importAction.Execute += ImportAction_Execute; }
/// <summary> /// Initializes a new instance of the <see cref="ExitController"/> class. /// </summary> public ExitController() { TargetWindowType = WindowType.Main; ExitAction = new SimpleAction(this, ExitActionId, "Exit") { Caption = "Exit", ImageName = "Action_Exit" }; ExitAction.Execute += ExitAction_OnExecute; }
public ImportApInvoicesDueViewController() { TargetObjectType = typeof(ImportApInvoicesDueParam); TargetViewType = ViewType.DetailView; var importAction = new SimpleAction(this, "ImportApInvoicesDueAction", PredefinedCategory.ObjectsCreation); importAction.Caption = "Import"; importAction.Execute += ImportAction_Execute; }
public RichEditController() { var simpleAction = new SimpleAction(this, "RichEdit", PredefinedCategory.ObjectsCreation) { ConfirmationMessage = "default toolbar ok" }; simpleAction.Execute += SimpleActionOnExecute; simpleAction.TargetObjectType = typeof(RichEditObject); }
public DailyCashUpdateParamViewController() { TargetObjectType = typeof(DailyCashUpdateParam); TargetViewType = ViewType.DetailView; var runAction = new SimpleAction(this, "DailyCashUpdateRunAction", PredefinedCategory.ObjectsCreation); runAction.Caption = "Run"; runAction.Execute += RunAction_Execute; }
public static void Button(bool bEnable, Color color, string name, SimpleAction action, params GUILayoutOption[] options) { button_action(bEnable, color, () => { if (GUILayout.Button(name, options)) { action(); } }); }
public Command(string name, string label, string?tooltip, string?icon_name, GLib.Variant?state = null) { Action = new SimpleAction(name, null, state); Action.Activated += (o, args) => { Activated?.Invoke(o, args); }; Label = label; Tooltip = tooltip; IconName = icon_name; }
public EditAddressBookRecordController() { TargetObjectType = typeof(AddressBookRecord); SimpleAction editAddressBookRecordAction = new SimpleAction(this, "EditAddressBookRecord", PredefinedCategory.Edit); editAddressBookRecordAction.ImageName = "Action_Edit"; editAddressBookRecordAction.SelectionDependencyType = SelectionDependencyType.RequireSingleObject; editAddressBookRecordAction.Execute += editAddressBookRecordAction_Execute; }
public SpellCheckerWindowController() { this.TargetWindowType = WindowType.Child; CheckSpellingAction = new SimpleAction(this, "CheckSpelling", PredefinedCategory.RecordEdit); CheckSpellingAction.Caption = "Check Spelling"; CheckSpellingAction.ToolTip = "Check the spelling and grammar of text in the form."; CheckSpellingAction.Category = PredefinedCategory.RecordEdit.ToString(); CheckSpellingAction.ImageName = "Action_SpellChecker"; CheckSpellingAction.TargetViewType = ViewType.DetailView; CheckSpellingAction.Execute += checkSpellingAction_Execute; }
public ConnectTaks() { InitializeComponent(); TargetObjectType = typeof(Task); ClickSimpleAction = new SimpleAction(this, "TaskController", PredefinedCategory.Edit) { Caption = "Powiąż zlecenia", ToolTip = "Powiąż przesyłki wybranych zadań z wybranymi pojazdami" }; ClickSimpleAction.Execute += ClickSimpleAction_Execute; }
public ReceiptPackageItems() { SimpleAction showWindowAction = new SimpleAction(this, "ShowWindow", DevExpress.Persistent.Base.PredefinedCategory.View); showWindowAction.ImageName = "ModelEditor_Views"; showWindowAction.Execute += new SimpleActionExecuteEventHandler(ReceiptPackageItem_Execute); InitializeComponent(); // Target required Views (via the TargetXXX properties) and create their Actions. }
public ClearDBController() { TargetWindowType = WindowType.Main; ActionClearDB = new SimpleAction(this, "ActionClearDBTubulacao", PredefinedCategory.RecordEdit) { Caption = "Excluir Tubulação", ImageName = "ClearAll" }; ActionClearDB.CustomizeControl += ActionClearDB_CustomizeControl; }
public BusinessObjectBaseViewController() { var showImplementInterfaces = new SimpleAction(this, "ShowImplementInterfaces", "ShowImplementInterfaces"); showImplementInterfaces.Execute += ShowImplementInterfaces_Execute; showImplementInterfaces.Caption = "查看"; var showGenericParameters = new SimpleAction(this, "ShowGenericParameters", "ShowGenericParameters"); showGenericParameters.Execute += ShowGenericParameters_Execute; showGenericParameters.Caption = "查看"; }
public UniversalSearchController() { OpenDetailViewAction = new SimpleAction(this, "ShowDetailView", "Hidden"); OpenDetailViewAction.Caption = "ShowDetailView"; OpenDetailViewAction.Execute += ShowDetailView_Execute; // Target required Views (via the TargetXXX properties) and create their Actions. SearchAction = new ParametrizedAction(this, "Universal Search", DevExpress.Persistent.Base.PredefinedCategory.View, typeof(string)); SearchAction.Execute += Search_Execute; this.TargetObjectType = typeof(UniversalSearchResult); FullTextSearchTargetPropertiesMode = FullTextSearchTargetPropertiesMode.AllSearchableMembers; }
public ImportTabelasAxiliaresController() { TargetWindowType = WindowType.Main; ActionAtualizarTabelasAuxiliares = new SimpleAction(this, "SimpleActionImportTabelasAxiliaresController", PredefinedCategory.RecordEdit) { Caption = "Atualizar Tabelas Auxiliares", ImageName = "UpdateTableOfContents" }; ActionAtualizarTabelasAuxiliares.Execute += ActionAtualizarTabelasAuxiliares_Execute; }
public TaxonomyBaseObjectInfoViewController() { InitializeComponent(); RegisterActions(components); var action = new SimpleAction(Container); action.Id = Guid.NewGuid().ToString(); action.Caption = "addddddddd"; Actions.Add(action); TargetViewType=ViewType.DetailView; TargetObjectType = typeof (TaxonomyBaseObjectInfo); }
public FlowChartPropertyEditor(Type objectType, IModelMemberViewItem model) : base(objectType, model) { this._actions = new List <ActionBase>(); this.DoCommandAction = new SimpleAction(null, base.PropertyName + "_NavigateToObject_" + Guid.NewGuid(), base.PropertyName + "_Edit"); this.DoCommandAction.Application = application; this.DoCommandAction.Execute += DoCommandAction_Execute; this.Actions.Add(this.DoCommandAction); }
private SimpleAction CreateSimpleTransitionAction(IStateMachine stateMachine, ChoiceActionItem transitionItem) { var simpleAction = new SimpleAction(this, Guid.NewGuid( ).ToString( ), PredefinedCategory.Edit /*, "StateMachineActions"*/); simpleAction.Enabled["ViewIsInEditMode"] = (( DetailView )View).ViewEditMode == ViewEditMode.Edit; simpleAction.Enabled["EnabledBySecurity"] = DataManipulationRight.CanEdit(stateMachine.TargetObjectType, stateMachine.StatePropertyName, View.CurrentObject, null, View.ObjectSpace); simpleAction.Tag = transitionItem; simpleAction.Caption = transitionItem.Caption; simpleAction.Execute += SimpleAction_Execute; return(simpleAction); }
public NewLocationController() { var myAction = new SimpleAction(this, "Add Location", DevExpress.Persistent.Base.PredefinedCategory.View); myAction.TargetObjectType = typeof(object); myAction.Execute += myAction_Execute; myAction.ImageName = "BO_Country_v92"; Actions.Add(myAction); this.FrameAssigned += NewLocationController_FrameAssigned; ObjectCreated += NewLocationController_ObjectCreated; TargetViewType = ViewType.ListView; TargetObjectType = typeof(object); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.executeTaxonomyQueryAction = new DevExpress.ExpressApp.Actions.SimpleAction(this.components); // // executeTaxonomyQueryAction // this.executeTaxonomyQueryAction.Caption = "Execute Query"; this.executeTaxonomyQueryAction.Category = "Tools"; this.executeTaxonomyQueryAction.Id = "ExecuteTaxonomyQueryActionId"; this.executeTaxonomyQueryAction.Tag = null; this.executeTaxonomyQueryAction.TypeOfView = null; this.executeTaxonomyQueryAction.Execute += new DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler(this.ActionOnExecute); }
public AnalysisDataBindController() { bindDataAction = new SimpleAction(this, BindMultiAnalysisData,PredefinedCategory.RecordEdit); bindDataAction.Execute += bindDataAction_Execute; bindDataAction.Caption = "Bind Analysis Data"; bindDataAction.SelectionDependencyType = SelectionDependencyType.RequireSingleObject; bindDataAction.ImageName = "MenuBar_BindAnalysisData"; bindDataAction.PaintStyle = ActionItemPaintStyle.CaptionAndImage; unbindDataAction = new SimpleAction(this, Unbindmultianalysisdata, PredefinedCategory.RecordEdit); unbindDataAction.Execute += unbindDataAction_Execute; unbindDataAction.Caption = "Unbind Analysis Data"; unbindDataAction.SelectionDependencyType = SelectionDependencyType.RequireSingleObject; unbindDataAction.ImageName = "MenuBar_UnbindAnalysisData"; unbindDataAction.PaintStyle = ActionItemPaintStyle.CaptionAndImage; }
public ImportController() { InitializeComponent(); RegisterActions(components); this.TargetWindowType = WindowType.Main; this.ImportExaminationAction = new SimpleAction(this, "ImportExaminationAction", "ImportExamination"); //this.ImportExamination.ExecuteCanceled += new EventHandler<ActionBaseEventArgs>(ImportExamination_ExecuteCanceled); this.ImportExaminationAction.ImageName = "import"; this.ImportExaminationAction.Caption = "Import examination"; this.ImportExaminationAction.Active.SetItemValue("Security", DevExpress.ExpressApp.SecuritySystem.IsGranted((new DevExpress.ExpressApp.Security.ClientPermissionRequest(typeof(MitsarDataStudio.Module.DC.IExamination), null, null, DevExpress.ExpressApp.Security.SecurityOperations.Create))) && DevExpress.ExpressApp.SecuritySystem.IsGranted((new DevExpress.ExpressApp.Security.ClientPermissionRequest(typeof(MitsarDataStudio.Module.DC.IPatient), null, null, DevExpress.ExpressApp.Security.SecurityOperations.Create)))); }
public ExchangeWindowController() { InitializeComponent(); foreach (var ex in ExchangeTypeHelper.FindAllExchanges() .Where(x => x.GetCustomAttributes(typeof(SubExchangeAttribute), true).Length == 0) .OrderBy(x => TryGetIndex(ExchangeOperationBase.GetModel(x, Application)))) { var act = new SimpleAction(this.components); act.Id = ex.FullName + "Action"; act.Category = "MP_Exchange"; act.Tag = ex; act.ImageName = "Action_Export_Chart"; act.Execute += exchangeChoiceAction_Execute; } RegisterActions(components); }
private void CreateConclusionTemplateAction(string ActionId, string ActionCaption, string ActionImageName) { SimpleAction action = new SimpleAction(this.Container) { Id = ActionId, Caption = ActionCaption, ImageName = ActionImageName, TargetObjectType = typeof(IOrganization), Category = ToolBarCustomizer.MainNavigationObjectsContainerId, PaintStyle = ActionItemPaintStyle.CaptionAndImage, }; action.Active.SetItemValue("Security", (SecuritySystem.CurrentUser as Employee).PermitToConclusion); //SecuritySystem.IsGranted((new ClientPermissionRequest(typeof(IOrganization), // null, null, SecurityOperations.Create)))); action.Execute += new SimpleActionExecuteEventHandler(OpenConclusionTemplateAction_Execute); Actions.Add(action); }
public SearchFromDetailViewController() { _searchAction = new SimpleAction(this, "Search", PredefinedCategory.Search); _searchAction.Execute += SimpleActionOnExecute; TargetViewType = ViewType.DetailView; }
public AuditPendingController(){ _approveAuditsAction = new SimpleAction(this,ApproveAudits,PredefinedCategory.ObjectsCreation); _approveAuditsAction.Execute+=ApproveAuditsActionOnExecute; _approveAuditsAction.TargetObjectType = typeof (IBaseAuditDataItemPersistent); }
public void SetDrawFrameDelegate(SimpleAction drawFrameDel) { this.drawFrameDel = drawFrameDel; }
public DemoAboutInfoController() : base() { demoAboutInfoAction = new SimpleAction(this, "Demo About Info", DevExpress.Persistent.Base.PredefinedCategory.About); demoAboutInfoAction.Caption = "About..."; }
public DisplayFeatureModelController() { _simpleAction = new SimpleAction(this,"Differences",PredefinedCategory.View); _simpleAction.Execute+=SimpleActionOnExecute; _simpleAction.ImageName = "MenuBar_EditModel"; }
public ActionManager AddToQueue(SimpleAction action, double startAfter = 0.0f) { queueActions.Enqueue(new SimpleActionInfo(action, startAfter)); return this; }
public void AddIndependent(SimpleAction action, double startAfter = 0.0f) { simpleActions.Add(new SimpleActionInfo(action, startAfter)); }
private void CreateWorkspaceNavigationAction() { //IModelView workspace = Application.Model.Views["Workspace"]; SimpleAction action = new SimpleAction(this.Container) { Id = "Workspace_NavigationActionId", Category = ToolBarCustomizer.MainNavigationObjectsContainerId, //"ViewsHistoryNavigation",// }; action.Execute += (o, a) => { ViewShortcut shortcut = new ViewShortcut("Workspace", String.Empty); Application.MainWindow.SetView(Application.ProcessShortcut(shortcut)); }; Actions.Add(action); }
/// <summary> /// Создание обработчика удаления обследований /// </summary> private void DeleteExaminationActionCreate( ) { SimpleAction action = new SimpleAction(this.Container) { Id = "DeleteExaminationAction", Caption = "Delete Examination", Category = "Menu", // показывать только в контекстном меню (по правой кнопке) TargetObjectType = typeof(IExamination), //TargetViewId = "IExamination_CompactListView", TargetObjectsCriteria ="IsBusy=false", PaintStyle = ActionItemPaintStyle.Image, SelectionDependencyType = SelectionDependencyType.RequireSingleObject, }; action.Active.SetItemValue("Security", SecuritySystem.IsGranted((new ClientPermissionRequest(typeof(IExamination), null, null, SecurityOperations.Delete)))); action.Execute += new SimpleActionExecuteEventHandler(DeleteExaminationAction_Execute); Actions.Add(action); }
private void CreateNavigationAction(Type ObjectType, string ActionId, string ObjectCaption, string ObjectImageName, string ContainerId, SimpleActionExecuteEventHandler ExecuteHandler = null) { SimpleAction action = new SimpleAction(this.Container) { Id = ActionId, Caption = ObjectCaption, ImageName = ObjectImageName, TargetObjectType = ObjectType, Category = ContainerId, PaintStyle = ActionItemPaintStyle.CaptionAndImage, }; action.Active.SetItemValue("Security", SecuritySystem.IsGranted((new ClientPermissionRequest(ObjectType, null, null, SecurityOperations.Navigate)))); if (ExecuteHandler == null) action.Execute += new SimpleActionExecuteEventHandler(NavigationAction_Execute); else action.Execute += ExecuteHandler; Actions.Add(action); }
/// <summary> /// Instantiates object /// </summary> /// <param name="action">Action to perform</param> /// <param name="startAfter">Dealy before action performing</param> public SimpleActionInfo(SimpleAction action, double startAfter = 0.0f) { this.Action = action; this.StartAfter = startAfter; }
private void EditExaminationActionCreate() { SimpleAction action = new SimpleAction(this.Container) { Id = "EditExaminationAction", Caption = "Edit examination", Category = "Menu", TargetObjectType = typeof(IExamination), TargetViewType = ViewType.ListView, PaintStyle = ActionItemPaintStyle.Image, SelectionDependencyType = SelectionDependencyType.RequireSingleObject, }; action.Active.SetItemValue("Security", SecuritySystem.IsGranted(new ClientPermissionRequest(typeof(IExamination), null, null, SecurityOperations.Read)) && SecuritySystem.IsGranted(new ClientPermissionRequest(typeof(IExamination), null, null, SecurityOperations.Write))); action.Execute += new SimpleActionExecuteEventHandler(EditExaminationAction_Execute); Actions.Add(action); }