Example #1
0
 internal bool DoModalConfigure()
 {
     // open the configuration dialog
     using (var dlg = new TerrainConfig())
     {
         dlg.Value = BuildDialogConfig();
         var result = dlg.ShowDialog();
         if (result == DialogResult.OK)
         {
             return(Reconfigure(dlg.Value));
         }
     }
     return(false);
 }
Example #2
0
 internal bool DoModalConfigure()
 {
     // open the configuration dialog
     using (var dlg = new TerrainConfig())
     {
         dlg.Value = BuildDialogConfig();
         var result = dlg.ShowDialog();
         if (result == System.Windows.Forms.DialogResult.OK)
         {
             Reconfigure(dlg.Value);
             return(true);
         }
     }
     return(false);
 }