Exemplo n.º 1
0
        private void ListBox_PreviewMouseLeftButtonDown(Object sender, MouseButtonEventArgs e)
        {
            ListBox lb = e.Source as ListBox;

            SelectedTypeItem  = lb.SelectedItem as IdCardTypeItem;
            this.DialogResult = true;
        }
Exemplo n.º 2
0
        private void verticalListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ListBox lb = e.Source as ListBox;

            SelectedTypeItem  = lb.SelectedItem as IdCardTypeItem;
            this.DialogResult = true;
        }