Interaction logic for CreateEmployee.xaml
Наследование: System.Windows.Window
Пример #1
0
 public void buttonEmployeeAdd_Click(object sender, RoutedEventArgs e)
 {
     CreateEmployee createEmployee = new CreateEmployee(employees);
     createEmployee.ShowDialog();
     lvEmployees.ItemsSource = employees.EmployeesList;
     this.TotalSalaryCost.Text = "$" + employees.TotalSalaryCost.ToString();
     this.AverageSalary.Text = "$" + employees.AverageSalary.ToString();
 }
Пример #2
0
        public void buttonEmployeeAdd_Click(object sender, RoutedEventArgs e)
        {
            CreateEmployee createEmployee = new CreateEmployee(employees);

            createEmployee.ShowDialog();
            lvEmployees.ItemsSource   = employees.EmployeesList;
            this.TotalSalaryCost.Text = "$" + employees.TotalSalaryCost.ToString();
            this.AverageSalary.Text   = "$" + employees.AverageSalary.ToString();
        }