Esempio n. 1
0
 public AssemblyController(IAssemblyService assemblyService, IFileInfoService fileInfoService
                           , IServiceInfoService serviceInfoService)
 {
     _assemblyService    = assemblyService;
     _serviceInfoService = serviceInfoService;
     _fileInfoService    = fileInfoService;
 }
Esempio n. 2
0
        public MainViewModel(IDialogService dialogService,
                             IPresetReaderService presetReaderService,
                             IPresetRenderService presetRenderService,
                             IPresetBuilderService presetBuilderService,
                             IErrorDisplayService errorDisplayService,
                             IToolService toolService,
                             IFileInfoService fileInfoService)
        {
            Session = new SessionViewModel();

            FileSelectorVM = new FileSelectorViewModel(Session,
                                                       dialogService,
                                                       fileInfoService);

            PresetSelectorVM = new PresetSelectorViewModel(Session,
                                                           presetReaderService,
                                                           presetRenderService);
            JobVM = new JobViewModel(Session,
                                     presetBuilderService,
                                     dialogService,
                                     errorDisplayService);

            ToolsVM = new ToolsViewModel(toolService);

            GetFFmpegCommand           = new MvxCommand(OnGetFFmpeg);
            OpenCloseToolFlyoutCommand = new MvxCommand(OnOpenCloseFlyout);
        }
Esempio n. 3
0
 public FileInfoController(IFileInfoService fileInfoService)
 {
     this._fileInfoService     = fileInfoService;
     this._internalServerError = new ContentResult()
     {
         StatusCode = (int)HttpStatusCode.InternalServerError,
         Content    = "Internal Server Error"
     };
 }
 public FileSelectorViewModel(SessionViewModel session, IDialogService dialogService, IFileInfoService infoService)
 {
     _session                 = session;
     _dialogService           = dialogService;
     _infoService             = infoService;
     Files                    = new ObservableCollectionExt <FileSelectorItemViewModel>();
     Files.CollectionChanged += UpdateSession;
     AddFilesCommand          = new MvxCommand(OnAddFiles);
     ClearListCommand         = new MvxCommand(OnClearList);
     RemoveSelectedCommand    = new MvxCommand <FileSelectorItemViewModel>(OnRemoveSelected, CanRemoveSelected);
     FilesDragedinCommand     = new MvxCommand <string[]>(OnFilesDraggedIn);
     AddFolderCommand         = new MvxCommand(OnAddFolder);
     SortCommand              = new MvxCommand <int>(OnSort);
     InfoSelectedCommand      = new MvxCommand <FileSelectorItemViewModel>(OnInfo, CanGetInfo);
     AddArguments(Environment.GetCommandLineArgs());
 }
Esempio n. 5
0
 public ResultController(IFileInfoService fileInfoService, IUserInfoService userInfoService)
 {
     this._fileInfoService = fileInfoService;
     _userInfoService      = userInfoService;
 }
Esempio n. 6
0
 public FileController(IFileInfoService service)
 {
     _service = service;
 }
 public FileManagerController(IFileInfoService fileInfoService, IUserInfoService userInfoService)
 {
     this._fileInfoService = fileInfoService;
     this._userInfoService = userInfoService;
 }