public async void InitWindow() { //Check if regedit is set up Regedit.CheckRegedit(); await MonitorProcess.InitMonitoringAsync(this); //Wait for the app to check for update if (await Update.CheckUpdate(this) == null) { //Once it's done, fill the listview with videos await FillList(); } }