Ejemplo n.º 1
0
 public void TestHelpSetUp()
 {
     FitnessFirst.Help help = new FitnessFirst.Help();
     help.SetText("title", "desc");
     Assert.AreEqual(help.Title.Text, "title");
     Assert.AreEqual(help.Desc.Text, "desc");
 }
Ejemplo n.º 2
0
        public static void ShowHelp(Pages page, string title, string desc, bool help)
        {
            Help h = new Help();

            h.SetText(title, desc);
            if (help)
            {
                if (h.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    if (page == Pages.HomePage)
                    {
                        homehelp = false;
                    }
                    else if (page == Pages.CalendarPage)
                    {
                        calhelp = false;
                    }
                    else if (page == Pages.ExercisePage)
                    {
                        exehelp = false;
                    }
                    else if (page == Pages.SummaryPage)
                    {
                        sumhelp = false;
                    }
                    else if (page == Pages.AchievementPage)
                    {
                        achhelp = false;
                    }
                    h.Close();
                }
            }
        }