private void dgvPayroll_MouseDoubleClick(object sender, MouseEventArgs e) { double id = Convert.ToDouble(dgvPayroll.SelectedRows[0].Cells["IDS"].Value.ToString()); PayrollNew frm = new PayrollNew(); frm.PayrollGet(id); frm.PayrollEmployeeGet(id); frm.Show(); }
private void tsbNewPayroll_Click(object sender, EventArgs e) { PayrollNew payroll = new PayrollNew(); payroll.Show(); }
// public PayrollNew PayrollNewForm { get; set; } public PayrollUpdate(PayrollNew parent) { InitializeComponent(); frm1 = parent; }