Exemple #1
0
        private void ListView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var employeeModel = ((ListView)sender).SelectedItem as EmployeeModel;


            AddEmployeeWindow addEmployeeWindow = new AddEmployeeWindow(employeeModel);

            addEmployeeWindow.ShowDialog();
        }
Exemple #2
0
        private void editEmployee(object id)
        {
            var           employeeModel     = viewModel.EmployeeModels.Single(t => t.Id == id.ToString());
            EmployeeModel employeeViewModel = new EmployeeModel();

            AddEmployeeWindow addEmployeeWindow = new AddEmployeeWindow(employeeViewModel);

            addEmployeeWindow.ShowDialog();
        }
Exemple #3
0
        private void AddEmployeeClick(object sender, RoutedEventArgs e)
        {
            AddEmployeeWindow addEmployeeWindow = new AddEmployeeWindow();

            addEmployeeWindow.ShowDialog();
        }