Пример #1
0
        private void Button_Click_Up_Directory(object sender, RoutedEventArgs e)
        {
            DirButton dirButton = new DirButton();

            dirButton.Update(ID_D.Text, (CbDir.SelectedItem as Organization).Id, Work_Phone_D.Text);
            gr691_baoEntities1 db = new gr691_baoEntities1();

            DirGrid.ItemsSource = db.Search.ToList();
        }
Пример #2
0
        private void Button_Click_Del_Directory(object sender, RoutedEventArgs e)
        {
            DirButton dirButton = new DirButton();

            dirButton.Delete(ID_D.Text);
            gr691_baoEntities1 db = new gr691_baoEntities1();

            DirGrid.ItemsSource = db.Search.ToList();
        }