Beispiel #1
0
        private void LabAllBody_Click(object sender, EventArgs e)
        {
            this.Visible       = false;
            this.ShowInTaskbar = false;
            FormForExercisecs legs = new FormForExercisecs();

            legs.LoadInfo(6, "все тело");
            legs.Show();
        }
Beispiel #2
0
        private void labPress_Click(object sender, EventArgs e)
        {
            this.Visible       = false;
            this.ShowInTaskbar = false;
            FormForExercisecs legs = new FormForExercisecs();

            legs.LoadInfo(5, "пресс");
            legs.Show();
        }
Beispiel #3
0
        private void labChest_Click(object sender, EventArgs e)
        {
            this.Visible       = false;
            this.ShowInTaskbar = false;
            FormForExercisecs legs = new FormForExercisecs();

            legs.LoadInfo(1, "грудь");
            legs.Show();
        }
Beispiel #4
0
        private void labBack_Click(object sender, EventArgs e)
        {
            this.Visible       = false;
            this.ShowInTaskbar = false;
            FormForExercisecs legs = new FormForExercisecs();

            legs.LoadInfo(2, "спину");
            legs.Show();
        }
Beispiel #5
0
        private void labLegs_Click(object sender, EventArgs e)
        {
            this.Close();
            GC.Collect();
            FormForExercisecs legs = new FormForExercisecs();

            legs.LoadInfo(3, "ноги"); // передача параметров в метод на форму для подгрузки нужных упражнений
            legs.Show();
        }