Thread safe update collection.

UWPTest
Brian Lima 8 years ago
parent 39a805ee25
commit a1d078d6ae

@ -145,7 +145,9 @@ namespace UWPHook
var valor = app.Replace("\r\n", "").Split('|');
if (!String.IsNullOrEmpty(valor[0]))
{
Apps.Entries.Add(new AppEntry() { Name = valor[0], Aumid = valor[1], Selected = false });
App.Current.Dispatcher.BeginInvoke((Action)delegate () {
Apps.Entries.Add(new AppEntry() { Name = valor[0], Aumid = valor[1], Selected = false });
});
}
}
}
@ -156,4 +158,4 @@ namespace UWPHook
window.ShowDialog();
}
}
}
}
Loading…
Cancel
Save