Пример #1
0
        private void AddCLient_Click(object sender, RoutedEventArgs args)
        {
            var window = new MClientWindow(null);

            if (window.ShowDialog() ?? false)
            {
                UpdatePeopleListBox();
            }
        }
Пример #2
0
        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();
            }
        }