コード例 #1
0
 public SaveFileDialog(string title = null)
 {
     if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
     {
         _backend = new Win.WinSaveFileDialog(title);
     }
     else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
     {
         try
         {
             _backend = new Gtk.GtkSaveFileDialog(title);
         }
         catch
         {
             _backend = new Zenity.ZenitySaveFileDialog(title);
         }
     }
 }