private void ButtonPrint(object sender, RoutedEventArgs e) { int buttonId = (int)((Button)sender).Tag; //MessageBox.Show(xx.StartPayroll + " "); EmployeePrintView employeePrint = new EmployeePrintView(buttonId); employeePrint.Show(); }
private void Row_DoubleClick(object sender, MouseButtonEventArgs e) { var xx = (Employee)EmployeeGrid.SelectedItem; //MessageBox.Show(xx.StartPayroll + " "); EmployeePrintView employeePrint = new EmployeePrintView(xx.EmployeePK); employeePrint.Show(); }