示例#1
0
 public void UpdateTheme(ThemeDTView themeDT)
 {
     if (this.SelectedItem != null)
     {
         ((ListBoxItem)this.SelectedItem).Content = themeDT.Name;;
     }
 }
示例#2
0
 public void DisplayTheme(ThemeDTView themeDT)
 {
     tbSelectedTheme.Text = themeDT.Name;
     tbSelectedTheme.Tag  = themeDT.ID;
     tbSelectedTheme.Focus();
     tbSelectedTheme.CaretIndex = tbSelectedTheme.Text.Length;
     IsLeximReadyToNew          = themeDT.ID != 0;
 }
示例#3
0
        private ListBoxItem MapToItem(ThemeDTView themeDT)
        {
            ListBoxItem lbi = new ListBoxItem();

            lbi.Tag     = themeDT.ID;
            lbi.Content = themeDT.Name;
            return(lbi);
        }
示例#4
0
        public void AddTheme(ThemeDTView themeDT)
        {
            ComboBoxItem cbi = new ComboBoxItem();

            cbi.Tag     = themeDT.ID;
            cbi.Content = themeDT.Name;
            cbThemes.Items.Add(cbi);
        }
示例#5
0
        public void InsertTheme(int index, ThemeDTView themeDT)
        {
            ListBoxItem lbi = MapToItem(themeDT);

            this.Items.Insert(0, lbi);
        }
示例#6
0
        public void AddDisplayTheme(ThemeDTView themeDT)
        {
            ListBoxItem lbi = MapToItem(themeDT);

            this.Items.Add(lbi);
        }