private void InitializeComponent()
        {
            this._components       = new System.ComponentModel.Container();
            this._showTimeTracking = new DevExpress.ExpressApp.Actions.PopupWindowShowAction(this._components)
            {
                AcceptButtonCaption = "Save",
                ImageName           = "Action_ShowHideDateNavigator",
                PaintStyle          = DevExpress.ExpressApp.Templates.ActionItemPaintStyle.Image,
                Caption             = "Time",
                Category            = "Edit",
                ConfirmationMessage = null,
                Id = "TimeTracingAction",
                TargetObjectsCriteria = "Not IsNewObject(this)",
                ToolTip = "Capeture Time tracking for Employee's"
            };

            this._showTimeTracking.CustomizePopupWindowParams += new DevExpress.ExpressApp.Actions.CustomizePopupWindowParamsEventHandler(this.ShowTimeTracking_CustomizePopupWindowParams);
            this._showTimeTracking.Execute += new DevExpress.ExpressApp.Actions.PopupWindowShowActionExecuteEventHandler(this.ShowTimeTracking_Execute);
        }
        private void InitializeComponent()
        {
            this._components      = new System.ComponentModel.Container();
            this._showEmailAction = new DevExpress.ExpressApp.Actions.PopupWindowShowAction(this._components)
            {
                AcceptButtonCaption = "Send",
                ImageName           = "MailMerge",
                PaintStyle          = DevExpress.ExpressApp.Templates.ActionItemPaintStyle.Image,
                Caption             = "Email",
                Category            = "Edit",
                Id = "EmailAction",
                TargetObjectsCriteria = "Not IsNewObject(this)",
                ToolTip = "Send Email"
            };

            this._showEmailAction.CustomizePopupWindowParams += new DevExpress.ExpressApp.Actions.CustomizePopupWindowParamsEventHandler(this.ShowEmailAction_CustomizePopupWindowParams);
            this._showEmailAction.Execute += new DevExpress.ExpressApp.Actions.PopupWindowShowActionExecuteEventHandler(this.ShowEmailAction_Execute);
            this._showEmailAction.Cancel  += _showEmailAction_Cancel;
        }
Example #3
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();

            this.ShowPaymentAction = new DevExpress.ExpressApp.Actions.PopupWindowShowAction(this.components)
            {
                AcceptButtonCaption = null,
                CancelButtonCaption = null,
                Caption             = "Enter Payment",
                ConfirmationMessage = null,
                Id         = "MultiplePayment",
                ImageName  = "BO_Sale_Item",
                ToolTip    = "Capture multiple payments",
                TypeOfView = typeof(DevExpress.ExpressApp.ListView),
                SelectionDependencyType = SelectionDependencyType.RequireMultipleObjects
            };

            this.ShowPaymentAction.CustomizePopupWindowParams += new DevExpress.ExpressApp.Actions.CustomizePopupWindowParamsEventHandler(this.ShowPaymentAction_CustomizePopupWindowParams);
            this.ShowPaymentAction.Execute += new DevExpress.ExpressApp.Actions.PopupWindowShowActionExecuteEventHandler(this.ShowPaymentAction_Execute);
            this.Actions.Add(this.ShowPaymentAction);
            this.TargetViewType = DevExpress.ExpressApp.ViewType.ListView;
            this.TypeOfView     = typeof(DevExpress.ExpressApp.ListView);
        }