private void btnAdd_Click(object sender, EventArgs e)
        {
            FrmDetailUserMaster detailUser = new FrmDetailUserMaster();

            detailUser.MdiParent = this.MdiParent;
            detailUser.Show();
            this.Close();
        }
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dgvUserMaster.SelectedRows.Count > 0)
     {
         var id = (int)dgvUserMaster.SelectedRows[0].Cells["UserID"].Value;
         FrmDetailUserMaster detailUser = new FrmDetailUserMaster();
         detailUser.SetUserMaster(id);
         detailUser.Show();
     }
 }