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); }
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); }