Esempio n. 1
0
        private void RemoveDestination_Click(object sender, RoutedEventArgs e)
        {
            var ds = DeviceListBox.SelectedItem as DeviceSettings;

            ds.Destinations.RemoveAt(DestinationListBox.SelectedIndex);
            DestinationListBox.Focus();
        }
Esempio n. 2
0
        private void AddDestination_Click(object sender, RoutedEventArgs e)
        {
            var ds = DeviceListBox.SelectedItem as DeviceSettings;

            ds.Destinations.Add(new Destination());
            DestinationListBox.SelectedIndex = ds.Destinations.Count - 1;
            DestinationListBox.Focus();
        }