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
    object
    AbstractController
    AbstractViewController
    AbstractBindedController
    FilesController
    Implements
    IDisposable
    IBindedController
    Inherited Members
    AbstractBindedController.Activate()
    AbstractBindedController.GetExplorerBarControl()
    AbstractBindedController.GetContentControl()
    AbstractBindedController.Invoke(Delegate)
    AbstractBindedController.BeginInvoke(Delegate)
    AbstractBindedController.View
    AbstractBindedController.InvokeRequired
    AbstractViewController.Refresh()
    AbstractViewController.Dispose()
    AbstractViewController.Dispose(bool)
    AbstractViewController.Context
    AbstractViewController.ActivationChanged
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.TranslationStudioAutomation.IntegrationApi
    Assembly: Sdl.TranslationStudioAutomation.IntegrationApi.dll
    Syntax
    [BindController("FilesView")]
    public class FilesController : AbstractBindedController, IDisposable, IBindedController

    Constructors

    FilesController(IVisibleFilesProvider, IStudioWindow)

    Declaration
    public FilesController(IVisibleFilesProvider visibleFilesProvider, IStudioWindow studioWindow)
    Parameters
    Type Name Description
    IVisibleFilesProvider visibleFilesProvider
    IStudioWindow studioWindow

    Properties

    AreAllSelectedTaskFilesAssignedToCurrentUser

    Check if all selected files are assigned to the current user.

    Declaration
    public bool AreAllSelectedTaskFilesAssignedToCurrentUser { get; }
    Property Value
    Type Description
    bool

    CurrentProject

    Get the current project.

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

    CurrentSelectedLanguage

    Gets the current selected project language

    Declaration
    public Language CurrentSelectedLanguage { get; }
    Property Value
    Type Description
    Language

    CurrentVisibleFiles

    Declaration
    public IEnumerable<ProjectFile> CurrentVisibleFiles { get; }
    Property Value
    Type Description
    IEnumerable<ProjectFile>

    SelectedFiles

    Get the selected files.

    Declaration
    public IEnumerable<ProjectFile> SelectedFiles { get; }
    Property Value
    Type Description
    IEnumerable<ProjectFile>

    SelectedTasks

    Gets the user selected tasks from the Files View

    Declaration
    public IEnumerable<ManualTask> SelectedTasks { get; }
    Property Value
    Type Description
    IEnumerable<ManualTask>

    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
    bool

    True if operation is succesfull.

    SelectFiles(IEnumerable<ProjectFile>)

    Select files.

    Declaration
    public void SelectFiles(IEnumerable<ProjectFile> filesToSelect)
    Parameters
    Type Name Description
    IEnumerable<ProjectFile> filesToSelect

    Events

    SelectedFilesChanged

    Triggered when the selected files has been changed.

    Declaration
    public event EventHandler SelectedFilesChanged
    Event Type
    Type Description
    EventHandler

    Implements

    IDisposable
    IBindedController

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(object, Action<Window>)
    In this article
    • Constructors
      • FilesController(IVisibleFilesProvider, IStudioWindow)
    • Properties
      • AreAllSelectedTaskFilesAssignedToCurrentUser
      • CurrentProject
      • CurrentSelectedLanguage
      • CurrentVisibleFiles
      • SelectedFiles
      • SelectedTasks
    • Methods
      • AddFiles()
      • Initialize(IViewContext)
      • RemoveSelectedFiles()
      • SelectFiles(IEnumerable<ProjectFile>)
    • Events
      • SelectedFilesChanged
    • Implements
    • Extension Methods
    Back to top Generated by DocFX