private void dgvGiftVoucherItem_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
     {
         m_VoucherItem = m_CurrentVoucher.VoucherItemDetailList[e.RowIndex];
         MinBuyAmount  = m_CurrentVoucher.MinBuyAmount;
         SetPrice();
         this.DialogResult = DialogResult.OK;
         this.Close();
     }
 }
 private void btnOk_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvGiftVoucherItem.SelectedRows.Count > 0)
         {
             m_VoucherItem = m_CurrentVoucher.VoucherItemDetailList[dgvGiftVoucherItem.SelectedRows[0].Index];
             MinBuyAmount  = m_CurrentVoucher.MinBuyAmount;
             SetPrice();
             this.DialogResult = DialogResult.OK;
             this.Close();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(Common.GetMessage("40000"), Common.GetMessage("10004"), MessageBoxButtons.OK, MessageBoxIcon.Error);
         LogManager.WriteExceptionLog(ex);
     }
 }