private async void LoadImg_Click(object sender, RoutedEventArgs e) { webcam.Enable = false; var img = await ImageFileReader.SelectImage(); if (img != null) { ProcessImage(img); } }