ModuleBase.GetStartupActions() Method

Returns a list of Pop-up Window Show Actions that must be executed before loading the application's main Window.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.1.dll

Syntax

public virtual IList<PopupWindowShowAction> GetStartupActions()

Returns

Type Description
System.Collections.Generic.IList<PopupWindowShowAction>

An IList<PopupWindowShowAction> object that represents a collection of Actions to be executed before invoking the application's main Window.

Override this method to return a custom list of Pop-up Window Show Actions to be executed when the application is starting up. In the following example, an Action that shows the BusinessObject1 List View is added.

using DevExpress.ExpressApp.Actions;
// ...
public override IList<PopupWindowShowAction> GetStartupActions() {
    List<PopupWindowShowAction> actions = new List<PopupWindowShowAction>(base.GetStartupActions());
    IObjectSpace objectSpace = Application.CreateObjectSpace(typeof(BusinessObject1));
    PopupWindowShowAction startupAction = new PopupWindowShowAction();
    startupAction.CustomizePopupWindowParams += 
        delegate(Object sender, CustomizePopupWindowParamsEventArgs e) {
        e.View = Application.CreateListView(objectSpace, typeof(BusinessObject1), true);
    };
    actions.Add(startupAction);
    return actions;
}