public void LoadAppsIntoView(string srcPath, Action <List <ApplicationInfo> > action = null) { IsWorking = true; var parser = new ApplicationInfoParser(); var param = new LoadAppsIntoViewParam(); param.srcPath = srcPath; param.action = action; param.parser = parser; param.ViewModel = ViewModel; _loadAppsThread = new Thread(LoadAppsIntoViewThread); _loadAppsThread.Start(param); }
public void LoadAppsIntoView(string srcPath, Action<List<ApplicationInfo>> action = null) { IsWorking = true; var parser = new ApplicationInfoParser(); var param = new LoadAppsIntoViewParam(); param.srcPath = srcPath; param.action = action; param.parser = parser; param.ViewModel = ViewModel; _loadAppsThread = new Thread(LoadAppsIntoViewThread); _loadAppsThread.Start(param); }