예제 #1
0
        /// <summary>
        /// In a lack of better places to do this, I will load all the function into the array in the form_load function.
        /// This is becuase I couldn't think of a better way to do it, and I don't have time ATM to find that out either.
        /// </summary>
        private void Form1_Load(object sender, EventArgs e)
        {
            email.Hide();
            nsahack.Hide();

            // Include splash screen perhaps?

            // Add all the parts to the partsarray
            PartsArray[0] = new WelcomeClass()
            {
                message = @"Welcome to Weatherman!
You can always type your 
commands, even when 
Weatherman is speaking. 
Don't hesitate to interupt.

Type anything to start or
exit to exit.

If you are stuck,
press enter.
That usually works."
            };

            PartsArray[1]  = new WelcomeResponseClass(); // This isntance of the class does not have a message prop becuase it doesn't need one.
            PartsArray[2]  = new GetName();              // Same as the reason stated above.
            PartsArray[5]  = new IntroToWeatherman();    // You know..
            PartsArray[6]  = new NoYes();
            PartsArray[7]  = new PresentScript();
            PartsArray[8]  = new HackNSA();
            PartsArray[9]  = new HackNSAReturn();
            PartsArray[10] = new AccessServer();
            PartsArray[11] = new CheckAccessServer();
            PartsArray[12] = new RememberCode();
            PartsArray[13] = new RemberCodeParser();
            PartsArray[14] = new GoodBye();
            PartsArray[15] = new Exit();
        }