private void btnAdd_Click(object sender, EventArgs e) { frmAddSalaryType FrmAdd = new frmAddSalaryType(-1, "", "", "", 0, this); FrmAdd.StartPosition = FormStartPosition.CenterScreen; FrmAdd.ShowDialog(); }
private void button2_Click(object sender, EventArgs e) { if (tblTypeSalary.SelectedItems.Length > 0) { Row r = tblTypeSalary.SelectedItems[0]; frmAddSalaryType FrmAdd = new frmAddSalaryType(Convert.ToInt16(r.Cells[5].Text), r.Cells[1].Text, r.Cells[2].Text, r.Cells[3].Text, Convert.ToDecimal(r.Cells[4].Text),this); FrmAdd.StartPosition = FormStartPosition.CenterScreen; FrmAdd.ShowDialog(); } }
private void button2_Click(object sender, EventArgs e) { if (tblTypeSalary.SelectedItems.Length > 0) { Row r = tblTypeSalary.SelectedItems[0]; frmAddSalaryType FrmAdd = new frmAddSalaryType(Convert.ToInt16(r.Cells[5].Text), r.Cells[1].Text, r.Cells[2].Text, r.Cells[3].Text, Convert.ToDecimal(r.Cells[4].Text), this); FrmAdd.StartPosition = FormStartPosition.CenterScreen; FrmAdd.ShowDialog(); } }
private void btnAdd_Click(object sender, EventArgs e) { frmAddSalaryType FrmAdd = new frmAddSalaryType(-1, "", "","",0,this); FrmAdd.StartPosition = FormStartPosition.CenterScreen; FrmAdd.ShowDialog(); }