Search Results for

    Show / Hide Table of Contents

    Class AbstractApplication

    Base class for the application

    Inheritance
    System.Object
    AbstractApplication
    SdlTradosStudioApplication
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.Desktop.IntegrationApi
    Assembly: Sdl.Desktop.IntegrationApi.dll
    Syntax
    public abstract class AbstractApplication

    Constructors

    AbstractApplication()

    Initialize the instance of this class

    Declaration
    protected AbstractApplication()

    Methods

    ExecuteAction<TAction>()

    Execute the requested action

    Declaration
    public virtual void ExecuteAction<TAction>()
        where TAction : AbstractAction
    Type Parameters
    Name Description
    TAction

    The requested action by type.

    GetAction<TAction>()

    Gets the requested action.

    Declaration
    public virtual TAction GetAction<TAction>()
        where TAction : AbstractAction
    Returns
    Type Description
    TAction

    The action requested or null if none was found.

    Type Parameters
    Name Description
    TAction

    The requested action by type.

    GetController<TController>()

    Gets the requested controller. This supports getting view or view part controllers.

    Declaration
    public virtual TController GetController<TController>()
        where TController : AbstractController
    Returns
    Type Description
    TController

    The controller of type T requested.

    Type Parameters
    Name Description
    TController

    the type of the requested controller

    GetService<T>()

    Gets the requested service.

    Declaration
    public T GetService<T>()
    Returns
    Type Description
    T

    The service requested or null if none was found.

    Type Parameters
    Name Description
    T

    The requested service by type.

    RegisterRelay(IStudioWindow)

    Initializes services when the window is created

    Declaration
    protected virtual void RegisterRelay(IStudioWindow window)
    Parameters
    Type Name Description
    Sdl.Desktop.Platform.IStudioWindow window

    Events

    Closing

    Triggered when the application is closing

    Declaration
    public event EventHandler<CancelEventArgs> Closing
    Event Type
    Type Description
    System.EventHandler<System.ComponentModel.CancelEventArgs>

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(Object, Action<Window>)

    On this page

    • Constructors
      • AbstractApplication()
    • Methods
      • ExecuteAction<TAction>()
      • GetAction<TAction>()
      • GetController<TController>()
      • GetService<T>()
      • RegisterRelay(IStudioWindow)
    • Events
      • Closing
    • Extension Methods
    Back to top Generated by DocFX