private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            PayrollModel pm = dgvEmployees.SelectedItem as PayrollModel;

            if (pm != null)
            {
                PayrollDetailsWindow pdw = new PayrollDetailsWindow(this, pm);
                pdw.ShowDialog();
            }
        }
Exemple #2
0
 public PinCodeWindow(PayrollDetailsWindow pdw)
 {
     payrollDetails = pdw;
     InitializeComponent();
 }
        private void btnAddPayroll_Click(object sender, RoutedEventArgs e)
        {
            PayrollDetailsWindow payrollDetails = new PayrollDetailsWindow(this);

            payrollDetails.ShowDialog();
        }