예제 #1
0
        //..........................................Welcome/Goodbye/Hello Response messages................................

        public static void loadUpWelcome()
        {
            wAndG = new WelcomeAndGoodbye();
            Thread welcomeThread = new Thread(new ThreadStart(wAndG.welcome));

            welcomeThread.IsBackground = true;
            welcomeThread.Start();
        }
예제 #2
0
        public static void endProgram(Form thisForm)
        {
            wAndG = new WelcomeAndGoodbye();
            Thread goodbyeThread = new Thread(new ThreadStart(wAndG.goodbye));

            goodbyeThread.IsBackground = true;
            goodbyeThread.Start();
            goodbyeThread.Join();
            thisForm.Close();
        }