private void PopulateRazorFolder() { FilePathParser parser = new FilePathParser(); Thread thread = new Thread(parser.PopulateRazorLocation); thread.SetApartmentState(ApartmentState.STA); thread.Start(); }
private void GetPath() { FilePathParser parser = new FilePathParser(); Thread thread = new Thread(parser.GetFilePath); thread.SetApartmentState(ApartmentState.STA); thread.Start(); }