Beispiel #1
0
        private void Add_click(object sender, RoutedEventArgs e)
        {
            Add_window add_ = new Add_window(null);

            if (add_.ShowDialog() == true)
            {
                employees.Clear();
                WorkWithServer("Emp");
            }
        }
Beispiel #2
0
        private void Edit_click(object sender, RoutedEventArgs e)
        {
            var        tmpEmp = (EmployeeDTO)lbEmploy.SelectedItem;
            Add_window add    = new Add_window(tmpEmp);

            if (add.ShowDialog() == true)
            {
                //employees.Clear();
                WorkWithServer("Emp");
            }
        }