/** * @brief event for setting the contet of the Help window */ private void functionButton_Click(object sender, RoutedEventArgs e) { string caseText = (sender as Button).Content.ToString(); HelpContent ActualHelpContent = helpDictionary[caseText]; fillLabels(ActualHelpContent); }
/** * @brief filling (setting the contents) the labels with needed content * @param mode needed content */ private void fillLabels(HelpContent ActualHelpContent) { titleLabel.Content = ActualHelpContent.Title; descriptionLabel.Content = ActualHelpContent.Description; caseOneLabel.Content = ActualHelpContent.Case[0]; caseTwoLabel.Content = ActualHelpContent.Case[1]; caseThreeLabel.Content = ActualHelpContent.Case[2]; caseFourLabel.Content = ActualHelpContent.Case[3]; }