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; }
public FilesSelectorVM(FilesSelectorM filesSelectorM) //FilesSelectorM parameter constructor for CreateVmFromM Converter { FilesSelectorM = filesSelectorM; }