Exemple #1
0
        private void butAddClient_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new AddClients(false, -1);

            if (dlg.ShowDialog() == true)
            {
                MessageBox.Show("Очевидно, добавлена строка");
            }
        }
Exemple #2
0
        private void butUpClient_Click(object sender, RoutedEventArgs e)
        {
            Client t   = Clients.SelectedItem as Client;
            var    dlg = new AddClients(true, t.ID);

            if (dlg.ShowDialog() == true)
            {
                MessageBox.Show("Очевидно, добавлена строка");
            }
        }