예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Random s = new Random();
            int    sum;

            sum = s.Next(1, 9) + info.TypingSpeed;
            if (sum >= 8)
            {
                MessageBox.Show("Success");

                ConferenceRoom n = new ConferenceRoom(info);
                n.Show();
                this.Hide();
            }
            else
            {
                info.Energy = info.Energy - 3;

                if (info.Energy <= 0)
                {
                    LoseScreen x = new LoseScreen();
                }
                else
                {
                    MessageBox.Show("Your fingers are fatigued.\n\nYour proposal is badly typed and you do not have time to finish it.");

                    ConferenceRoom n = new ConferenceRoom(info);
                    n.Show();
                    this.Hide();
                }
            }
            //what happens when button 2 is clicked
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Random s = new Random();
            int    sum;

            sum = s.Next(1, 9) + info.Adaptibility;
            if (sum >= 7)
            {
                MessageBox.Show("Success!");

                Breakroom n = new Breakroom(info);
                n.Show();
                this.Hide();
            }
            else
            {
                info.Energy = info.Energy - 3;
                if (info.Energy <= 0)
                {
                    LoseScreen x = new LoseScreen();
                    x.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("You overestimated your stealth.\n\nThe receptionist lets the security dog loose, but you only loose one finger, so you continue on.");

                    Breakroom n = new Breakroom(info);
                    n.Show();
                    this.Hide();
                }
            }
            //determines what happens when button2 is clicked
        }
예제 #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Random s = new Random();
            int    sum;

            sum = s.Next(1, 9) + info.Strength;
            if (sum >= 7)
            {
                MessageBox.Show("Success");

                ConferenceRoom n = new ConferenceRoom(info);
                n.Show();
                this.Hide();
            }
            else
            {
                info.Energy = info.Energy - 2;
                if (info.Energy <= 0)
                {
                    LoseScreen x = new LoseScreen();
                }
                else
                {
                    MessageBox.Show("Your keyboard malfunctions.\n\nYou are forced to include many grammatical errors in your presentation.");

                    ConferenceRoom n = new ConferenceRoom(info);
                    n.Show();
                    this.Hide();
                }
            }
            //what happens if button 1 is clicked
        }
예제 #4
0
        private void button2_Click(object sender, EventArgs e)
        {
            Random s = new Random();
            int    sum;

            sum = s.Next(1, 9) + info.Adaptibility;
            if (sum >= 7)
            {
                MessageBox.Show("Success");

                SupplyCloset n = new SupplyCloset(info);
                n.Show();
                this.Hide();
            }
            else
            {
                info.Energy = info.Energy - 4;
                if (info.Energy <= 0)
                {
                    LoseScreen x = new LoseScreen();
                    x.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("You have spilled coffee on yourself.\n\nTrying not to draw attention to yourself, you stifle your screams of pain and escape to the safety of the supply closet.");

                    SupplyCloset n = new SupplyCloset(info);
                    n.Show();
                    this.Hide();
                }
            }
            //what happens when button 2 is clicked
        }
예제 #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            Random s = new Random();
            int    sum;

            sum = s.Next(1, 9) + info.Caffeine;
            if (sum >= 5)
            {
                MessageBox.Show("Success!");

                Breakroom n = new Breakroom(info);
                n.Show();
                this.Hide();
            }
            else
            {
                info.Energy = info.Energy - 2;
                if (info.Energy <= 0)
                {
                    LoseScreen x = new LoseScreen();
                    x.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("The Receptionist is in a bad mood.\nThe cup of coffee has been thrown in your face.");

                    Breakroom n = new Breakroom(info);
                    n.Show();
                    this.Hide();
                }
            }
            //determines what happens when button1 is clicked
        }
        private void button2_Click(object sender, EventArgs e)
        {
            Random s = new Random();
            int    sum;

            sum = s.Next(1, 9) + info.Caffeine;
            if (sum >= 7)
            {
                MessageBox.Show("Success");

                Cubicle n = new Cubicle(info);
                n.Show();
                this.Hide();
            }
            else
            {
                info.Energy = info.Energy - 4;
                if (sum <= 0)
                {
                    LoseScreen x = new LoseScreen();
                }
                else
                {
                    MessageBox.Show("There is not enough time to find the supplies.\n\nYou walk to your cubicle, emptyhanded and unprepared.");

                    Cubicle n = new Cubicle(info);
                    n.Show();
                    this.Hide();
                }
            }
            //what happens when button 2 is clicked
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Random s = new Random();
            int    sum;

            sum = s.Next(1, 9) + info.TypingSpeed;
            if (sum >= 6)
            {
                MessageBox.Show("Success");

                Cubicle n = new Cubicle(info);
                n.Show();
                this.Hide();
            }
            else
            {
                info.Energy = info.Energy - 3;
                if (sum <= 0)
                {
                    LoseScreen x = new LoseScreen();
                }
                else
                {
                    MessageBox.Show("The computer has crashed.\n\nYou walk to your cubicle, emptyhanded and unprepared");

                    Cubicle n = new Cubicle(info);
                    n.Show();
                    this.Hide();
                }
            }
            //what happens when button 1 is clicked
        }
예제 #8
0
        private void button3_Click(object sender, EventArgs e)
        {
            LoseScreen n = new LoseScreen();

            n.Show();
            this.Hide();
            //determines what happens when button 3 is clicked
        }
예제 #9
0
        private void button2_Click(object sender, EventArgs e)
        {
            Random s = new Random();
            int    sum;

            sum = s.Next(1, 9) + info.TypingSpeed + info.Strength;
            if (sum >= 6)
            {
                MessageBox.Show("Success!");

                WinScreen x = new WinScreen(info);
                x.Show();
                this.Hide();
            }
            else
            {
                LoseScreen x = new LoseScreen();
                x.Show();
                this.Hide();
            }
            //determines what happens when button 2 is clicked
        }
예제 #10
0
        private void button1_Click(object sender, EventArgs e)
        {
            Random s = new Random();
            int    sum;

            sum = s.Next(1, 9) + info.Caffeine + info.Adaptibility;
            if (sum >= 7)
            {
                MessageBox.Show("Success");

                WinScreen x = new WinScreen(info);
                x.Show();
                this.Hide();
            }
            else
            {
                LoseScreen x = new LoseScreen();
                x.Show();
                this.Hide();
            }
            //determines what happens when button 1 is clicked
        }