protected override void Dispose(bool disposing) { try { if (disposing) { if (objectWindowAction != null) { objectWindowAction.Execute -= objectWindowAction_OnExecute; objectWindowAction.CustomizePopupWindowParams -= objectWindowAction_OnCustomizePopupWindowParams; objectWindowAction.Dispose(); objectWindowAction = null; } if (control != null) { control.Buttons.Clear(); control.Dispose(); control = null; } } } finally { base.Dispose(disposing); } }
public PopupWindowShowActionSelectionDependencyController() { TargetObjectType = typeof(DemoItem); targetProperty = "SelectionDependency"; PopupWindowShowAction popupWindowShowAction = new PopupWindowShowAction(this, "PopupWindowShowActionIndependent", PredefinedCategory.Edit); popupWindowShowAction.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(PopupWindowShowActionRootObject.popupWindowShowAction_CustomizePopupWindowParams); popupWindowShowAction.Execute += new PopupWindowShowActionExecuteEventHandler(PopupWindowShowActionRootObject.popupWindowShowAction_Execute); popupWindowShowAction.SelectionDependencyType = SelectionDependencyType.Independent; popupWindowShowAction.Caption = popupWindowShowAction.SelectionDependencyType.ToString(); popupWindowShowAction.ToolTip = ActionsDemoStrings.SelectionDependencyIndependentTooltip; popupWindowShowAction = new PopupWindowShowAction(this, "PopupWindowShowActionRequireMultipleObjects", PredefinedCategory.Edit); popupWindowShowAction.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(PopupWindowShowActionRootObject.popupWindowShowAction_CustomizePopupWindowParams); popupWindowShowAction.Execute += new PopupWindowShowActionExecuteEventHandler(PopupWindowShowActionRootObject.popupWindowShowAction_Execute); popupWindowShowAction.SelectionDependencyType = SelectionDependencyType.RequireMultipleObjects; popupWindowShowAction.Caption = popupWindowShowAction.SelectionDependencyType.ToString(); popupWindowShowAction.ToolTip = ActionsDemoStrings.SelectionDependencyRequireMultipleObjectsTooltip; popupWindowShowAction = new PopupWindowShowAction(this, "PopupWindowShowActionRequireSingleObject", PredefinedCategory.Edit); popupWindowShowAction.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(PopupWindowShowActionRootObject.popupWindowShowAction_CustomizePopupWindowParams); popupWindowShowAction.Execute += new PopupWindowShowActionExecuteEventHandler(PopupWindowShowActionRootObject.popupWindowShowAction_Execute); popupWindowShowAction.SelectionDependencyType = SelectionDependencyType.RequireSingleObject; popupWindowShowAction.Caption = popupWindowShowAction.SelectionDependencyType.ToString(); popupWindowShowAction.ToolTip = ActionsDemoStrings.SelectionDependencyRequireSingleObjectTooltip; }
public ShowDocumentsController() { PopupWindowShowAction showDocumentsAction = new PopupWindowShowAction(this, "Show Documents", "View"); showDocumentsAction.ImageName = "BO_Folder"; showDocumentsAction.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(showDocumentsAction_CustomizePopupWindowParams); TargetViewType = ViewType.ListView; TargetObjectType = typeof(object); }
public WplataDoRozliczeniaDCDetailViewController() { PrzypiszFaktury = new SimpleAction( this, $"{GetType().FullName}.{nameof(PrzypiszFaktury)}", DevExpress.Persistent.Base.PredefinedCategory.Edit) { Caption = "Przypisz faktury", ImageName = "Action_Search", }; PrzypiszFaktury.Execute += PrzypiszFaktury_Execute; WyczyscListeFaktur = new SimpleAction( this, $"{GetType().FullName}.{nameof(WyczyscListeFaktur)}", DevExpress.Persistent.Base.PredefinedCategory.Edit) { Caption = "Wyczyść listę faktur", ImageName = "Action_Clear", }; WyczyscListeFaktur.Execute += WyczyscListeFaktur_Execute; WybierzFakturyAction = new PopupWindowShowAction(this, $"{GetType().FullName}.{nameof(WybierzFakturyAction)}", DevExpress.Persistent.Base.PredefinedCategory.Edit) { Caption = "Wybierz faktury", ImageName = "BO_Invoice", }; WybierzFakturyAction.CustomizePopupWindowParams += WybierzFakturyAction_CustomizePopupWindowParams; WybierzFakturyAction.Execute += WybierzFakturyAction_Execute; }
public ShowDuplicateBooksController() { PopupWindowShowAction showDuplicatesAction = new PopupWindowShowAction(this, "ShowDuplicateBooks", "View"); showDuplicatesAction.CustomizePopupWindowParams += showDuplicatesAction_CustomizePopupWindowParams; }
protected override WebControl CreateEditModeControlCore() { WebControl control = base.CreateEditModeControlCore(); ASPxButtonEditBase buttonEdit; if (UseFindEdit()) { buttonEdit = FindEdit.Editor; } else { buttonEdit = DropDownEdit.DropDown; } if (editObjectAction == null) { editObjectAction = new PopupWindowShowAction(null, MemberInfo.Name + "_ASPxLookupEditor_EditObject", PredefinedCategory.Unspecified); editObjectAction.CustomizePopupWindowParams += editObjectAction_CustomizePopupWindowParams; editObjectAction.Application = application; } EditButton editButton = new EditButton(); ASPxImageHelper.SetImageProperties(editButton.Image, "Editor_Edit", 16, 16); buttonEdit.Buttons.Add(editButton); buttonEdit.Load += new EventHandler(buttonEdit_Load); return(control); }
public ShowLocationsController() { PopupWindowShowAction showLocationsAction = new PopupWindowShowAction(this, "Show Locations", "View"); showLocationsAction.ImageName = "Action_NavigationBar"; showLocationsAction.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(showLocationsAction_CustomizePopupWindowParams); TargetViewType = ViewType.ListView; TargetObjectType = typeof(object); }
protected override void Dispose(bool disposing) { try { if (disposing) { if (_objectWindowAction != null) { _objectWindowAction.Execute -= objectWindowAction_OnExecute; _objectWindowAction.CustomizePopupWindowParams -= objectWindowAction_OnCustomizePopupWindowParams; _objectWindowAction.Dispose(); _objectWindowAction = null; } if (_control != null) { _control.Buttons.Clear(); _control.Dispose(); _control = null; } } } finally { base.Dispose(disposing); } }
public ViewVariantsController() { this.TargetViewNesting = Nesting.Root; this.DeleteViewVariantAction = new SimpleAction(this, "DeleteViewVariant", "Edit"); this.DeleteViewVariantAction.Execute += new SimpleActionExecuteEventHandler(this.DeleteViewVariantAction_Execute); this.CreateViewVariantAction = new PopupWindowShowAction(this, "SaveAsNewViewVariant", "Edit"); this.CreateViewVariantAction.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(this.CreateViewVariantAction_CustomizePopupWindowParams); this.CreateViewVariantAction.Execute += new PopupWindowShowActionExecuteEventHandler(this.CreateViewVariantAction_Execute); this.SelectViewVariantAction = new SingleChoiceAction(this, "SelectViewVariant", "Edit"); this.SelectViewVariantAction.PaintStyle = ActionItemPaintStyle.Caption; this.SelectViewVariantAction.Execute += new SingleChoiceActionExecuteEventHandler(this.SelectViewVariantAction_Execute); this.UpdateCurrentViewVariantAction = new SimpleAction(this, "UpdateCurrentViewVariant", "Edit"); this.UpdateCurrentViewVariantAction.Execute += new SimpleActionExecuteEventHandler(this.UpdateCurrentViewVariantAction_Execute); this.UpdateDefaultSettingsWithSelectedVariantAction = new SimpleAction(this, "UpdateDefaultViewVariant", "Edit"); UpdateDefaultSettingsWithSelectedVariantAction.Execute += UpdateDefaultSettingsWithSelectedVariantAction_Execute; this.Actions.Add(this.DeleteViewVariantAction); this.Actions.Add(this.CreateViewVariantAction); this.Actions.Add(this.SelectViewVariantAction); this.Actions.Add(this.UpdateCurrentViewVariantAction); this.Actions.Add(this.UpdateDefaultSettingsWithSelectedVariantAction); }
public ShowProvincesController() { PopupWindowShowAction showProvincesAction = new PopupWindowShowAction(this, "Show Provinces", "View"); showProvincesAction.ImageName = "Action_Debug_Breakpoint_Toggle"; showProvincesAction.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(showProvincesAction_CustomizePopupWindowParams); TargetViewType = ViewType.ListView; TargetObjectType = typeof(object); }
public QuickAddBusinessObject() { var batchCreate = new PopupWindowShowAction(this, "BatchCreate", PredefinedCategory.Unspecified); batchCreate.Execute += BatchCreate_Execute; batchCreate.CustomizePopupWindowParams += BatchCreate_CustomizePopupWindowParams; }
protected override void ProcessStartupActions() { base.ProcessStartupActions(); if (UseSQLAlternativeInfoSingleton.Instance.UseAlternative) { PopupWindowShowAction showUseSQLAlternativeInfoAction = new PopupWindowShowAction(); IObjectSpace objectSpace = this.CreateObjectSpace(typeof(UseSQLAlternativeInfo)); UseSQLAlternativeInfo useSqlAlternativeInfo = objectSpace.GetObject <UseSQLAlternativeInfo>(UseSQLAlternativeInfoSingleton.Instance.Info); showUseSQLAlternativeInfoAction.CustomizePopupWindowParams += delegate(Object sender, CustomizePopupWindowParamsEventArgs e) { e.View = this.CreateDetailView(objectSpace, useSqlAlternativeInfo, true); e.DialogController.CancelAction.Active["Required"] = false; e.IsSizeable = false; }; Tracing.Tracer.LogVerboseText("showSQLAlternativeInfoAction is executing"); StopSplash();//Dennis: We do not need to display splash while these startup windows are shown. showUseSQLAlternativeInfoAction.Application = this; showUseSQLAlternativeInfoAction.HandleException += (s, e) => { if (!e.Handled) { HandleException(e.Exception); e.Handled = true; } }; using (PopupWindowShowActionHelper helper = new PopupWindowShowActionHelper(showUseSQLAlternativeInfoAction)) { helper.ShowPopupWindow(); } Tracing.Tracer.LogText("showSQLAlternativeInfoAction executed"); } }
private void BindMergeAction(PopupWindowShowAction pswAction) { IActionControlsSite site = Frame.Template as IActionControlsSite; IActionControlContainer container = GetTargetActionContainer(site, pswAction); if (container != null && container.FindActionControl(pswAction.Id) == null) { if (bAddAction) { // Action noch nicht da ISimpleActionControl actionControl = container.AddSimpleActionControl(pswAction.Id); actionControl.NativeControlDisposed += ActionControl_NativeControlDisposed; ActionBinding actionBinding = ActionBindingFactory.Instance.Create(pswAction, actionControl); if (!dictBinding.ContainsKey(pswAction)) { dictBinding.Add(pswAction, actionBinding); } } } if (container != null && container.FindActionControl(pswAction.Id) == null) { if (bAddAction) { if (!dictBinding.ContainsKey(pswAction)) { ISimpleActionControl actionControl = container.AddSimpleActionControl(pswAction.Id); actionControl.NativeControlDisposed += ActionControl_NativeControlDisposed; ActionBinding actionBinding = ActionBindingFactory.Instance.Create(pswAction, actionControl); dictBinding.Add(pswAction, actionBinding); } } } }
public ShowSingletonController() { this.TargetWindowType = WindowType.Main; PopupWindowShowAction showSingletonAction = new PopupWindowShowAction(this, "ShowSingleton", PredefinedCategory.View); showSingletonAction.CustomizePopupWindowParams += showSingletonAction_CustomizePopupWindowParams; }
public ShowDuplicateBooksController() { InitializeComponent(); // Target required Views (via the TargetXXX properties) and create their Actions. PopupWindowShowAction showDuplicateAction = new PopupWindowShowAction(this, "ShowDuplicateBooks", "View"); showDuplicateAction.CustomizePopupWindowParams += ShowDuplicateAction_CustomizePopupWindowParams; }
public PopupWindowShowActionController() { PopupWindowShowAction popupWindowShowAction = new PopupWindowShowAction(this, "PopupWindowShowDemoAction", PredefinedCategory.Edit); popupWindowShowAction.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(PopupWindowShowActionRootObject.popupWindowShowAction_CustomizePopupWindowParams); popupWindowShowAction.Execute += new PopupWindowShowActionExecuteEventHandler(PopupWindowShowActionRootObject.popupWindowShowAction_Execute); popupWindowShowAction.ImageName = ActionsDemoStrings.PopupWindowShowActionImageName; popupWindowShowAction.ToolTip = ActionsDemoStrings.PopupWindowShowActionTooltip; }
public PopupNotesController() { ShowNotesAction = new PopupWindowShowAction(this, $"{GetType().FullName}{nameof(ShowNotesAction)}", PredefinedCategory.Edit) { Caption = "PokaĹĽ notatki", }; ShowNotesAction.CustomizePopupWindowParams += ShowNotesAction_CustomizePopupWindowParams; ShowNotesAction.Execute += ShowNotesAction_Execute; }
/// <summary> /// <para>Creates an instance of the <see cref="SmtpEmailAccountController"/> class.</para> /// </summary> public SmtpEmailAccountController() { this.TargetObjectType = typeof(SmtpEmailAccount); sendTestEmail = new PopupWindowShowAction(this, "SendTestEmail", PredefinedCategory.View); sendTestEmail.Caption = "Send Test Email"; sendTestEmail.CustomizePopupWindowParams += SendTestEmail_CustomizePopupWindowParams; sendTestEmail.ImageName = "Glyph_Mail"; sendTestEmail.Execute += SendTestEmail_Execute; }
public WebLayoutController() { showAddationInfo = new PopupWindowShowAction(this.Container); showAddationInfo.Caption = "更多设置"; showAddationInfo.CustomizePopupWindowParams += showAddationInfo_CustomizePopupWindowParams; showAddationInfo.Category = "Hidden"; this.Actions.Add(showAddationInfo); this.RegisterActions(this.Container); }
public PopupCreateAppoiment() { InitializeComponent(); TargetViewId = "DashboardTest"; popupCreateAppoiment = new DevExpress.ExpressApp.Actions.PopupWindowShowAction(this, "popupCreateAppoiment", PredefinedCategory.View); popupCreateAppoiment.Caption = "Create Appointment"; popupCreateAppoiment.CustomizePopupWindowParams += new DevExpress.ExpressApp.Actions.CustomizePopupWindowParamsEventHandler(this.popupRemove_CustomizePopupWindowParams); popupCreateAppoiment.Execute += new DevExpress.ExpressApp.Actions.PopupWindowShowActionExecuteEventHandler(this.popupRemove_Execute); // Target required Views (via the TargetXXX properties) and create their Actions. }
public MyController() { TargetObjectType = typeof(Office); TargetViewType = ViewType.ListView; PopupWindowShowAction action = new PopupWindowShowAction(this, "AssignJobs", PredefinedCategory.RecordEdit); action.SelectionDependencyType = SelectionDependencyType.RequireMultipleObjects; action.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(action_CustomizePopupWindowParams); action.Execute += new PopupWindowShowActionExecuteEventHandler(action_Execute); }
public PopupWindowShowActionConfirmationMessageIsEmptyController() { targetProperty = "ConfirmationMessageIsEmpty"; PopupWindowShowAction popupWindowShowAction = new PopupWindowShowAction(this, "PopupWindowShowAction" + targetProperty, PredefinedCategory.Edit); popupWindowShowAction.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(PopupWindowShowActionRootObject.popupWindowShowAction_CustomizePopupWindowParams); popupWindowShowAction.Execute += new PopupWindowShowActionExecuteEventHandler(PopupWindowShowActionRootObject.popupWindowShowAction_Execute); popupWindowShowAction.Caption = ActionsDemoStrings.ConfirmationMessageIsEmpty; popupWindowShowAction.ToolTip = ActionsDemoStrings.ConfirmationMessageIsEmptyTooltip; }
public ShowPopupController() { PopupWindowShowAction showPopupAction = new PopupWindowShowAction( this, "ShowPopup", DevExpress.Persistent.Base.PredefinedCategory.View ); showPopupAction.CustomizePopupWindowParams += this.showPopupAction_CustomizePopupWindowParams; }
public AnonymousLogonController() { var popupWindowShowAction = new PopupWindowShowAction(this, "LogonAnonymous", "Security") { Caption = "Login" }; popupWindowShowAction.Execute += PopupWindowShowActionOnExecute; popupWindowShowAction.CustomizePopupWindowParams += PopupWindowShowActionOnCustomizePopupWindowParams; }
public KlientListViewController() { PopupWindowShowAction action = new PopupWindowShowAction(this, "Wystaw faktury", PredefinedCategory.RecordEdit) { ImageName = "BO_Skull" }; action.SelectionDependencyType = SelectionDependencyType.RequireMultipleObjects; action.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(action_CustomizePopupWindowParams); action.Execute += new PopupWindowShowActionExecuteEventHandler(action_Execute); }
public PersonListViewController() { newDCPopupAction = new PopupWindowShowAction(this, $"{ GetType().FullName}.{nameof(newDCPopupAction)}", DevExpress.Persistent.Base.PredefinedCategory.RecordEdit) { Caption = "New BaseDC", ImageName = "BO_Skull", }; newDCPopupAction.CustomizePopupWindowParams += NewDCPopupAction_CustomizePopupWindowParams; }
public InventoryRecordAddItemsController() { TargetObjectType = typeof(IAddItemList); TargetViewNesting = Nesting.Nested; actAddItems = new PopupWindowShowAction(); actAddItems.Id = "InventoryRecord.AddItems"; actAddItems.Caption = "Add Items"; Actions.Add(actAddItems); actAddItems.CustomizePopupWindowParams += ActAddItems_CustomizePopupWindowParams; actAddItems.Execute += actAddItems_Execute; }
public DefaultEmployeeController() { InitializeComponent(); RegisterActions(components); this.TargetObjectType = typeof(Employee); this.TargetViewType = ViewType.ListView; PopupWindowShowAction showDefaultEmployee = new PopupWindowShowAction(this, " DefaultEmployee", PredefinedCategory.View); showDefaultEmployee.CustomizePopupWindowParams += showDefaultEmployeeAction_CustomizePopupWindowParams; }
public KlientDetailViewController() { TargetViewNesting = Nesting.Nested; showCustomers = new PopupWindowShowAction(this, $"{GetType().Name}.{nameof(showCustomers)}", DevExpress.Persistent.Base.PredefinedCategory.OpenObject) { Caption = "Wybierz klienta", ImageName = "BO_Skull", }; showCustomers.Execute += ShowCustomers_Execute; showCustomers.CustomizePopupWindowParams += ShowCustomers_CustomizePopupWindowParams; }
public AnswerStartController() { TargetObjectType = typeof(Answer); var actionStartEdit = new PopupWindowShowAction( this, "Start", PredefinedCategory.RecordEdit) { SelectionDependencyType = SelectionDependencyType.RequireSingleObject }; actionStartEdit.CustomizePopupWindowParams += Action_CustomizeStartEditPopupWindowParams; actionStartEdit.Execute += (s, e) => { }; }
private void InitializeComponent() { components = new System.ComponentModel.Container(); _popupWindowShowActionOpenControlingObject = new PopupWindowShowAction(components) { Caption = "Configuration", Id = "popupWindowShowAction_OpenConfigurationStatic", ImageName = "OpenConfigurationStatic", Category = "Tools", ToolTip = null }; _popupWindowShowActionOpenControlingObject.CustomizePopupWindowParams += PopupWindowShowAction_OpenControlingObject_CustomizePopupWindowParams;; }
public WizardController() { PopupWindowShowAction TaskStatusAction = new PopupWindowShowAction(this, $"{GetType().FullName}.{nameof(TaskStatusAction)}", PredefinedCategory.Edit) { SelectionDependencyType = SelectionDependencyType.RequireSingleObject, Caption = "Wizard", ImageName = "witch", }; TargetObjectType = typeof(DemoTask); TaskStatusAction.CustomizePopupWindowParams += TaskStatusAction_CustomizePopupWindowParams; TaskStatusAction.Execute += TaskStatusAction_Execute; }
private void showPopup() { var action = new PopupWindowShowAction(null, "MyShowObject", ""); try { action.Application = Properties.Helper.Application; action.IsModal = true; action.CustomizePopupWindowParams += showObjectAction_CustomizePopupWindowParams; action.Execute += showObjectAction_Execute; new PopupWindowShowActionHelper(action).ShowPopupWindow(); } finally { action.Dispose(); } }
public AnonymousLogonWindowsController() { var popupWindowShowAction = new PopupWindowShowAction(this, "LogonAnonymous", "Security") { Caption = "Login" }; popupWindowShowAction.Execute+=PopupWindowShowActionOnExecute; popupWindowShowAction.CustomizePopupWindowParams+=PopupWindowShowActionOnCustomizePopupWindowParams; }
protected virtual MenuActionItemBase CreatePopupWindowShowactionObject(PopupWindowShowAction popupWindowShowAction) { return new PopupWindowActionMenuActionItem(popupWindowShowAction); }
protected override WebControl CreateEditModeControlCore() { if (objectWindowAction == null) { objectWindowAction = new PopupWindowShowAction(null, "ShowObjectDetailViewPopup", PredefinedCategory.Unspecified.ToString()); objectWindowAction.Execute += objectWindowAction_OnExecute; objectWindowAction.CustomizePopupWindowParams += objectWindowAction_OnCustomizePopupWindowParams; objectWindowAction.Application = application; } control = new ASPxButtonEdit { EnableClientSideAPI = true }; control.Load += buttonEdit_Load; control.Buttons.Clear(); control.Buttons.Add(""); ASPxImageHelper.SetImageProperties(control.Buttons[0].Image, "Editor_Edit"); if (control.Buttons[0].Image.IsEmpty) { control.Buttons[0].Text = "Edit"; } control.Enabled = true; control.ReadOnly = true; return control; }
protected override WebControl CreateEditModeControlCore() { if (newObjectWindowAction == null) { newObjectWindowAction = new PopupWindowShowAction(null, "New", PredefinedCategory.Unspecified.ToString()); newObjectWindowAction.Execute += newObjectWindowAction_OnExecute; newObjectWindowAction.CustomizePopupWindowParams += newObjectWindowAction_OnCustomizePopupWindowParams; newObjectWindowAction.Application = helper.Application; } var panel = new Panel(); // Use Panel instead of ASPxPanel cause it doesn't affect editor ClientID searchDropDownEdit = CreateSearchDropDownEditControl(); panel.Controls.Add(searchDropDownEdit); return panel; }
protected override void Dispose(bool disposing) { try { if (disposing) { if (newObjectWindowAction != null) { newObjectWindowAction.Execute -= newObjectWindowAction_OnExecute; newObjectWindowAction.CustomizePopupWindowParams -= newObjectWindowAction_OnCustomizePopupWindowParams; DisposeAction(newObjectWindowAction); newObjectWindowAction = null; } if (newObjectViewController != null) { newObjectViewController.ObjectCreating -= newObjectViewController_ObjectCreating; newObjectViewController.ObjectCreated -= newObjectViewController_ObjectCreated; newObjectViewController = null; } if (frame != null) { frame.SetView(null); frame.Dispose(); frame = null; } if (listView != null) { listView.Dispose(); listView = null; } foreach (IObjectSpace createdObjectSpace in createdObjectSpaces) { if (!createdObjectSpace.IsDisposed) { createdObjectSpace.Dispose(); } } createdObjectSpaces.Clear(); newObject = null; newObjectSpace = null; } } finally { base.Dispose(disposing); } }