private void AddCLient_Click(object sender, RoutedEventArgs args) { var window = new MClientWindow(null); if (window.ShowDialog() ?? false) { UpdatePeopleListBox(); } }
private void List_SelectionChanged(object sender, SelectionChangedEventArgs args) { var selectedMClient = ClientsListBox.SelectedItem as MClient; if (selectedMClient != null) { var window = new MClientWindow(selectedMClient); if (window.ShowDialog() ?? false) { UpdatePeopleListBox(); } ClientsListBox.UnselectAll(); } }