Esempio n. 1
0
 public OpenFileDialog(string title = null)
 {
     if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
     {
         _backend = new Win.WinOpenFileDialog(title);
     }
     else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
     {
         try
         {
             _backend = new Zenity.ZenityOpenFileDialog(title);
         }
         catch
         {
             _backend = new Gtk.GtkOpenFileDialog(title);
         }
     }
 }