void LoadThemesInfo() { ThemeValidation validation = new ThemeValidation(); cmb_themelist.Items.Clear(); foreach (ThemeInfo ti in validation.allthemeinfo) { cmb_themelist.Items.Add(ti.ThemeName); } }
private void cmb_themelist_SelectionChanged(object sender, SelectionChangedEventArgs e) { ThemeValidation validation = new ThemeValidation(); rct_themedeatilbox.Document.Blocks.Clear(); rct_themedeatilbox.AppendText("Author Name-" + validation.allthemeinfo[cmb_themelist.SelectedIndex].AuthorName); rct_themedeatilbox.AppendText("\nTheme Name-" + validation.allthemeinfo[cmb_themelist.SelectedIndex].ThemeName); rct_themedeatilbox.AppendText("\nInstruction By Author-" + validation.allthemeinfo[cmb_themelist.SelectedIndex].ThemeCopyright); }