Ejemplo n.º 1
0
 private bool CanSubmit()
 {
     // wegen Trim() muss mit "?" sichergestellt werden, dass Trim() gar nicht ausgeführt wird, wenn NewComboboxItem null ist
     return(!(string.IsNullOrEmpty(NewComboboxItem?.Trim())) &&
            !ComboBoxListe.Contains(NewComboboxItem));
 }
Ejemplo n.º 2
0
 private void Delete()
 {
     ComboBoxListe.Remove(SelectedComboboxItem);
 }
Ejemplo n.º 3
0
 private void Submit()
 {
     ComboBoxListe.Add(NewComboboxItem);
     NewComboboxItem = string.Empty;
 }