private void ButtonEmployees_OnClick(object sender, RoutedEventArgs e)
        {
            EmployeesWindow employeesWindow = new EmployeesWindow(_connection);

            employeesWindow.ShowDialog();
            RefreshDataEmployees();
        }
Esempio n. 2
0
        private void editEmployeesButton_Click(object sender, RoutedEventArgs e)
        {
            var             itm              = (Employees)EmployeesGrid.SelectedItem;
            Employees       EditEmployees    = MyDBContext.DBContext.Employees.Find(itm.ID_employees);
            EmployeesWindow employeesAddForm = new EmployeesWindow(this, EditEmployees);

            employeesAddForm.ShowDialog();
        }
Esempio n. 3
0
        private void addEmployeesButton_Click(object sender, RoutedEventArgs e)
        {
            EmployeesWindow EmployeesAddForm = new EmployeesWindow(this);

            EmployeesAddForm.ShowDialog();
        }