Esempio n. 1
0
 private DialogViewModel <string, ExamineViewModel> CreateExamineCommand()
 {
     return(new DialogViewModel <string, ExamineViewModel>
     {
         ViewModelBuilder = s => ExamineViewModel.CreateAndRun(_Interop, SelectedVisual, s),
     });
 }
Esempio n. 2
0
        public static ExamineViewModel CreateAndRun(IJavascriptContext jsContext, VisualViewModel visual, string text)
        {
            var vm = new ExamineViewModel
            {
                JsContext   = jsContext,
                Visual      = visual,
                ExamineText = text,
            };

            vm.Run();
            return(vm);
        }