private void ButtonPayroll_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(selectedEmployeeId)) { MessageBox.Show("Please select employee"); } else { PayrollSelectDateDialog psdd = new PayrollSelectDateDialog(selectedEmployeeId); psdd.ShowDialog(); //PayrollUI payrollui = new PayrollUI(selectedEmployeeId); //EmployeeManagement.mEmpTransitioner.Items.Add(payrollui); //EmployeeManagement.mEmpTransitioner.SelectedIndex = 1; GetAllEmployees(); } }
private void ButtonTK_Click(object sender, RoutedEventArgs e) { PayrollSelectDateDialog tkDialog = new PayrollSelectDateDialog(); tkDialog.ShowDialog(); }