/// <summary> /// Launches the form to configure networking /// upon return, the network engine should be fully initialized /// </summary> public static bool ConfigureNetwork() { // launch the main splash window frmMainSplash networkForm = new frmMainSplash(); Console.Out.WriteLine("Running the form"); networkForm.ShowDialog(); Console.Out.WriteLine("Form done running"); System.Console.Write(networkForm.DialogResult); if (networkForm.DialogResult == System.Windows.Forms.DialogResult.Cancel) return false; // check to see if we have a host as well client = networkForm.Client; server = networkForm.Server; return true; }
/// <summary> /// Launches the form to configure networking /// upon return, the network engine should be fully initialized /// </summary> public static bool ConfigureNetwork() { // launch the main splash window frmMainSplash networkForm = new frmMainSplash(); Console.Out.WriteLine("Running the form"); networkForm.ShowDialog(); Console.Out.WriteLine("Form done running"); System.Console.Write(networkForm.DialogResult); if (networkForm.DialogResult == System.Windows.Forms.DialogResult.Cancel) { return(false); } // check to see if we have a host as well client = networkForm.Client; server = networkForm.Server; return(true); }