private void btnShowAffairDetail_Click(object sender, EventArgs e)
        {
            if (dgvAffair.SelectedRows.Count <= 0)
                return;

            int position = Common.Algorithm.GetTablePositionFromDataGridViewRow(dgvAffair.SelectedRows[0],
                affairDataSet.AffairApply.Rows);
            AffairDetailForm frmViewAffair = new AffairDetailForm(
                affairDataSet.AffairApply.Rows[position].Field<int>("ID"));
            frmViewAffair.ShowDialog();
        }
 private void btnApplyNewAffair_Click(object sender, EventArgs e)
 {
     AffairDetailForm affairApplyForm = new AffairDetailForm();
     affairApplyForm.ShowDialog();
     this.affairApplyTableAdapter.FillByUserName(this.affairDataSet.AffairApply, User.CurrentUser.UserName);
 }