private void moduleSelector_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) { if (sender is ComboBox cb) { moduleType = "Module" + cb.SelectedItem.ToString(); ToolTipText.Text = ModuleDescriptionFile.GetToolTip(moduleType); Description.Text = ModuleDescriptionFile.GetDescription(moduleType); } }
private void Button_Click(object sender, RoutedEventArgs e) { ModuleDescriptionFile.SetToolTip(moduleType, ToolTipText.Text); ModuleDescriptionFile.SetDescription(moduleType, Description.Text); ModuleDescriptionFile.Save(); }