Search Results for

    Show / Hide Table of Contents

    Class FilesController

    Implement the controller for the files view and provide access to common project files operations.

    Inheritance
    System.Object
    AbstractController
    AbstractViewController
    AbstractBindedController
    FilesController
    Implements
    IBindedController
    Inherited Members
    AbstractBindedController.Dispose()
    AbstractBindedController.Activate()
    AbstractBindedController.GetExplorerBarControl()
    AbstractBindedController.GetContentControl()
    AbstractBindedController.View
    AbstractViewController.Refresh()
    AbstractViewController.Context
    AbstractViewController.ActivationChanged
    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.TranslationStudioAutomation.IntegrationApi
    Assembly: Sdl.TranslationStudioAutomation.IntegrationApi.dll
    Syntax
    [BindController("FilesView")]
    public class FilesController : AbstractBindedController, IViewController, IBindedController

    Constructors

    FilesController()

    Declaration
    public FilesController()

    Properties

    CurrentProject

    Get the current project.

    Declaration
    public FileBasedProject CurrentProject { get; }
    Property Value
    Type Description
    FileBasedProject

    SelectedFiles

    Get the selected files.

    Declaration
    public IEnumerable<ProjectFile> SelectedFiles { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<ProjectFile>

    Methods

    AddFiles()

    Add files from the selected folder.

    Declaration
    public void AddFiles()

    Initialize(IViewContext)

    Implements the files controller initialization

    Declaration
    protected override void Initialize(IViewContext context)
    Parameters
    Type Name Description
    IViewContext context

    The context of the files controller when initialized

    Overrides
    AbstractViewController.Initialize(IViewContext)

    RemoveSelectedFiles()

    Remove the selected files.

    Declaration
    public bool RemoveSelectedFiles()
    Returns
    Type Description
    System.Boolean

    True if operation is succesfull.

    Events

    SelectedFilesChanged

    Triggered when the selected files has been changed.

    Declaration
    public event EventHandler SelectedFilesChanged
    Event Type
    Type Description
    System.EventHandler

    Implements

    IBindedController

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(Object, Action<Window>)

    On this page

    • Constructors
      • FilesController()
    • Properties
      • CurrentProject
      • SelectedFiles
    • Methods
      • AddFiles()
      • Initialize(IViewContext)
      • RemoveSelectedFiles()
    • Events
      • SelectedFilesChanged
    • Implements
    • Extension Methods
    Back to top Generated by DocFX