Ejemplo n.º 1
0
 private static void ShowUploadWindow()
 {
     using (var dialog = new OpenFileDialog())
     {
         dialog.Filter           = MediaModel.GetFilterString();
         dialog.RestoreDirectory = true;
         //dialog.FilterIndex = 1;
         dialog.FileOk += async(s, e) =>
         {
             await Upload(dialog.FileName);
         };
         var result = dialog.ShowDialog();
     }
 }