Beispiel #1
0
        /// <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;
        }
Beispiel #2
0
        /// <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);
        }