public Task InitializeAsync(SettingsViewModel context)
        {
            _context = context;
            Commands = new CommandsViewData(ReadSettings);

            return(Task.CompletedTask);
        }
Пример #2
0
        public Task InitializeAsync(JsonFunctionsViewModel context)
        {
            _context = context;
            Commands = new CommandsViewData(PrettifyJson);

            return(Task.CompletedTask);
        }
Пример #3
0
        public Task InitializeAsync(ClassFromMetaDataViewModel context)
        {
            _context = context;
            Commands = new CommandsViewData(Create);

            return(Task.CompletedTask);
        }
Пример #4
0
        public Task InitializeAsync(MarkdownFunctionsViewModel context)
        {
            _context = context;

            Commands = new CommandsViewData(CleanTableCommand);

            return(Task.CompletedTask);
        }
Пример #5
0
        public Task InitializeAsync(ReportViewModel context)
        {
            _context = context;

            CommandsViewData = new CommandsViewData(
                CreateReport);

            return(Task.CompletedTask);
        }
Пример #6
0
        public Task InitializeAsync(TranslateResxViewModel context)
        {
            _context = context;
            _context.SourceFilePath = @"C:\MyGit\Personal\MobileLearningSystem3\Backend\Sources\Translations\WebApi\Areas\Web\Controllers\HelloController\HelloController.resx";
            _context.TargetFilePath = @"C:\MyGit\Personal\MobileLearningSystem3\Backend\Sources\Translations\WebApi\Areas\Web\Controllers\HelloController\HelloController.de.resx";
            Commands = new CommandsViewData(TranslateResx);

            return(Task.CompletedTask);
        }
Пример #7
0
        public Task InitializeAsync(TranslateJsonViewModel context)
        {
            _context = context;
            _context.SourceFilePath = @"C:\Users\mlm\Desktop\en.json";
            _context.TargetFilePath = @"C:\Users\mlm\Desktop\de.json";

            Commands = new CommandsViewData(TranslateJson);
            return(Task.CompletedTask);
        }
Пример #8
0
        public Task InitializeAsync(IndividualDetailsViewModel context)
        {
            _context = context;

            Commands = new CommandsViewData(
                SaveIndividual,
                Cancel);

            return(Task.CompletedTask);
        }
Пример #9
0
        public Task InitializeAsync(DecodingViewModel context)
        {
            _context = context;

            Commands = new CommandsViewData(
                Decode,
                Encode,
                SaveAsXml);

            return(Task.CompletedTask);
        }
        public Task InitializeAsync(DownloadViewModel context)
        {
            _context = context;

            _context.DownloadUrl = "http://www.google.ch";
            _context.TargetPath  = @"C:\Users\mlm\Desktop\Stuff\Privat\HTML";
            _context.UserName    = "******";
            _context.Password    = "******";

            Commands = new CommandsViewData(DownloadWebsite);
            return(Task.CompletedTask);
        }
        public Task InitializeAsync(IndividualsOverviewViewModel context)
        {
            _context = context;
            Commands = new CommandsViewData(
                CreateIndividual,
                UpdateIndividual,
                DeleteIndividual,
                SearchMatthias2,
                ClearSearch);

            return(Task.CompletedTask);
        }
Пример #12
0
        public Task InitializeAsync(ListFunctionsViewModel context)
        {
            _context = context;

            Commands = new CommandsViewData(
                ToCommaSeparatedListCommand,
                ToCommaSeparatedAndApostropheListCommand,
                SortListCommand,
                AnalyzePerformance
                );

            return(Task.CompletedTask);
        }
        public async Task InitializeAsync(ModelTestingViewModel context)
        {
            _context = context;

            await Task.Run(
                () =>
            {
                Commands = new CommandsViewData(
                    new List <ViewModelCommand>
                {
                    new ViewModelCommand(
                        "Create Model Tests",
                        new RelayCommand(
                            async() =>
                    {
                        var initParams = new ModelInitializationParameters(context.FolderPath, context.TestAssemblyBaseNamespce);
                        await _modelTestInitializationService.InitializeAllAsync(initParams);
                    },
                            () => !string.IsNullOrEmpty(context.FolderPath) && !string.IsNullOrEmpty(context.TestAssemblyBaseNamespce)))
                });
            });
        }
Пример #14
0
 public Task InitializeAsync(TestInformationViewModel context)
 {
     Commands = new CommandsViewData(After5Seconds);
     return(Task.CompletedTask);
 }
Пример #15
0
 public Task InitializeAsync(ComponentsViewModel context)
 {
     _context = context;
     Commands = new CommandsViewData(CreateEmptyComponent);
     return(Task.CompletedTask);
 }
Пример #16
0
        public Task InitializeAsync(IndividualsOverviewViewModel context)
        {
            Commands = new CommandsViewData(NavigateToOrganisations);

            return(Task.CompletedTask);
        }