Esempio n. 1
0
        async internal void TestPaths()
        {
            ViewState = ViewStates.InTestCalculation;
            StringBuilder result = new StringBuilder();

            Task <BindingList <string> > taskThread = Task <BindingList <string> > .Factory.StartNew(() => FilesSelectorM.TestFileList());

            await taskThread;

            foreach (string file in taskThread.Result)
            {
                result.Append(file + Util.crLf);
            }

            TestResult = result.ToString().RemoveFinal(Util.crLf);

            ViewState = ViewStates.InTestResultShowing;
        }
Esempio n. 2
0
 public FilesSelectorVM(FilesSelectorM filesSelectorM) //FilesSelectorM parameter constructor for CreateVmFromM Converter
 {
     FilesSelectorM = filesSelectorM;
 }