private void PrintPayroll(object sender, RoutedEventArgs e) { int payrollPK = (int)((Button)sender).Tag; PayrollPrintView payrollPrintView = new PayrollPrintView(payrollPK); payrollPrintView.Show(); }
private void Row_DoubleClick(object sender, MouseButtonEventArgs e) { var xx = (Payroll)PayrollGrid.SelectedItem; //MessageBox.Show(xx.StartPayroll + " "); PayrollPrintView payrollPrintView = new PayrollPrintView(xx.PayrollPK); payrollPrintView.Show(); }