Exemple #1
0
 public static Size Show(Size initialSize)
 {
     using (CustomResolutionDialog dialog = new CustomResolutionDialog(initialSize))
     {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             return(dialog.Value);
         }
         return(initialSize);
     }
 }
 public static Size Show(Size initialSize)
 {
     using (CustomResolutionDialog dialog = new CustomResolutionDialog(initialSize))
     {
         if (dialog.ShowDialog() == DialogResult.OK)
             return dialog.Value;
         return initialSize;
     }
 }