public void UpdateTheme(ThemeDTView themeDT) { if (this.SelectedItem != null) { ((ListBoxItem)this.SelectedItem).Content = themeDT.Name;; } }
public void DisplayTheme(ThemeDTView themeDT) { tbSelectedTheme.Text = themeDT.Name; tbSelectedTheme.Tag = themeDT.ID; tbSelectedTheme.Focus(); tbSelectedTheme.CaretIndex = tbSelectedTheme.Text.Length; IsLeximReadyToNew = themeDT.ID != 0; }
private ListBoxItem MapToItem(ThemeDTView themeDT) { ListBoxItem lbi = new ListBoxItem(); lbi.Tag = themeDT.ID; lbi.Content = themeDT.Name; return(lbi); }
public void AddTheme(ThemeDTView themeDT) { ComboBoxItem cbi = new ComboBoxItem(); cbi.Tag = themeDT.ID; cbi.Content = themeDT.Name; cbThemes.Items.Add(cbi); }
public void InsertTheme(int index, ThemeDTView themeDT) { ListBoxItem lbi = MapToItem(themeDT); this.Items.Insert(0, lbi); }
public void AddDisplayTheme(ThemeDTView themeDT) { ListBoxItem lbi = MapToItem(themeDT); this.Items.Add(lbi); }