Ejemplo n.º 1
0
        private void Dep_Edit_Click(object sender, RoutedEventArgs e)
        {
            int i = listDeps.SelectedIndex;

            if (i >= 0)
            {
                DepartmentEdit dep = new DepartmentEdit(Departments, i);
                dep.ShowDialog();
                foreach (Employee a in Workers)
                {
                    a.OnPropertyChanged("Department");                             //Вполне рабочий костыль =D
                }
            }
        }
Ejemplo n.º 2
0
        private void Dep_Add(object sender, RoutedEventArgs e)
        {
            DepartmentEdit dep = new DepartmentEdit(Departments);

            dep.ShowDialog();
        }