private void MainMenuButtonClick(object sender, EventArgs e)
        {
            Button button = (Button)sender;
            knowledge_center popup = new knowledge_center();

            if (button.Name == "Bintroduction")
                popup.GetContent(@"If you're serious about increasing your strength,
follow this six week training program and you'll soon be on your way to completing 100 consecutive push ups!


No doubt some of you can already do 50 consecutive push ups,
but let's face it, you're in a big minority. 
Most of you reading this won't even be able to manage 20 pushups. Actually, 
I'm sure many of you can't even do 10.



However, it really doesn't matter which group you fall into. 
If you follow the progressive push ups training program, 
I'm positive you'll soon be able to do 100 push ups!");

            else if (button.Name == "Bwhypushups")
                popup.GetContent(@"Push ups are one of the basic and most common exercises for the human body.
Push ups are not only great for your chest,
but do a tremendous job of defining your abs, triceps, shoulders and torso.

Push ups can be performed no matter where you are, and best of all, 
they are completely free - no expensive equipment or annual gym fees required! 
If you're looking to develop a great chest and shoulders, 
you could do much worse than follow along with the hundred push ups plan. 
Your core strength will also go through the roof too!

To improve your strength, fitness and general health all you need to do is
commit about 30 minutes of your time per week, and follow the push ups training program 
as closely as you can. I promise you will feel much better about yourself and much more 
confident after just a few short workouts.");

            else if (button.Name == "Bwhatisapushup")
                popup.GetContent(@"According to Wikipedia, a push-up (USA English), or a press-up (UK English), 
is ""a common strength training exercise performed in a prone position:

lying horizontal and face down, raising and lowering the body using the arms.""

Push ups are a basic exercise used in civilian athletic training or physical education and,
especially, in military physical training and will develop the pectoral muscles and triceps,
with ancillary benefits to the deltoids, serratus anterior,
coracobrachialis and the midsection as a whole.");

            DialogResult dialogresult = popup.ShowDialog();
        }
Ejemplo n.º 2
0
        private void MainMenuButtonClick(object sender, EventArgs e)
        {
            Button button = (Button)sender;
            knowledge_center popup = new knowledge_center();

            if (button.Name == "Bintroduction")
                Buttonname = "IntorductionTXT.txt";

            else if (button.Name == "Bwhypushups")
                Buttonname = "why_push_upsTXT.txt";

            else if (button.Name == "Bwhatisapushup")
                Buttonname = "what_is_a_push-upTXT.txt";

            ReadFileTXT();
            popup.textBox1.Text = content;

            DialogResult dialogresult = popup.ShowDialog();
        }