Exemplo n.º 1
0
        private void ButtonCharacterSetAdd_Click(object sender, RoutedEventArgs e)
        {
            var newCharacterSet = new CharacterSet();

            _csManager.Add(newCharacterSet);
            ListBoxCharacterSet.SelectedIndex = _csManager.IndexOf(newCharacterSet);
            ListBoxCharacterSet.ScrollIntoView(ListBoxCharacterSet.SelectedItem);
            e.Handled = true;
        }
Exemplo n.º 2
0
 private void ButtonCharacterSetRemove_Click(object sender, RoutedEventArgs e)
 {
     while (ListBoxCharacterSet.SelectedItems.Count > 0)
     {
         _csManager.Remove(ListBoxCharacterSet.SelectedItems[0] as CharacterSet);
     }
     ListBoxCharacterSet.SelectedIndex = _csManager.Count - 1;
     ListBoxCharacterSet.ScrollIntoView(ListBoxCharacterSet.SelectedItem);
     e.Handled = true;
 }