private void btnNew_Click(object sender, EventArgs e) { frmReturnToWH frm = new frmReturnToWH(); frm.Edit_Flage = false; frm.ShowDialog(); dgvList.Rows.Clear(); this.loadReturnToWH(); }
private void btnView_Click(object sender, EventArgs e) { if (rowIndex >= 0) { frmReturnToWH frm = new frmReturnToWH(); frm.Id = this.id; frm.Edit_Flage = true; frm.ShowDialog(); dgvList.Rows.Clear(); this.loadReturnToWH(); rowIndex = -1; } }