private void aDDToolStripMenuItem_Click ( object sender, EventArgs e )
        {
            if (dgv_trans.Rows.Count == 0)
            {
                MessageBox.Show ( "Please choose 1 row for editing" );
                return;
            }
            if (dgv_trans.Rows.Count > 0)
            {

                string MESSAGE_TYPE = dgv_trans["MSG", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string CARD_NUMBER = dgv_trans["CARD_NUMBER", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string TRANSACTION_AMOUNT = dgv_trans["TRANSACTION_AMOUNT_FULL", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string TRANSACTION_CURRENCY = dgv_trans["TRANSACTION_CURRENCY", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string BILLING_AMOUNT = dgv_trans["BILLING_AMOUNT_FULL", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string AUTHORIZATION_CODE = dgv_trans["AUTHORIZATION_CODE", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string CODE_ACTION = dgv_trans["response_code_orgi", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string TRANSACTION_LOCAL_DATE = dgv_trans["TRANSACTION_LOCAL_DATE", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );                
                Frm_Transactions_Monitor_Update a = new Frm_Transactions_Monitor_Update ( );
                a.type = "0";
                if (check_process ( MESSAGE_TYPE, CARD_NUMBER, TRANSACTION_AMOUNT, AUTHORIZATION_CODE, TRANSACTION_LOCAL_DATE ) == true) //2015-09-01 (4)
                {
                    if (MessageBox.Show ( "Giao dịch này đã được xử lý. Bạn có muốn kiểm tra lại?", "Thông Báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question ) == DialogResult.No)
                    {
                        return;
                    }
                    a.type = "1";
                }
                else
                {
                    a.type = "0";
                }
                a.message_type = MESSAGE_TYPE;
                a.card_nbr = CARD_NUMBER;// dgv_trans["", dgv_trans.CurrentCell.RowIndex].Value.ToString();
                a.trans_amount = TRANSACTION_AMOUNT;
                a.code_action = CODE_ACTION;
                a.trans_date = TRANSACTION_LOCAL_DATE;
                a.authorization_code = AUTHORIZATION_CODE;
                a.ShowDialog ( );
                loadData ( );
            }
            else
                return;
        }
        private void dgv_trans_CellDoubleClick ( object sender, DataGridViewCellEventArgs e )
        {
            if (dgv_trans.Rows.Count == 0)
            {
                MessageBox.Show ( "Please choose 1 row for editing" );
                return;
            }
            if (dgv_trans.Rows.Count > 0)
            {

                string MESSAGE_TYPE = dgv_trans["MESSAGE_TYPE", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string CARD_NUMBER = dgv_trans["CARD_NUMBER", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string TRANSACTION_AMOUNT = dgv_trans["TRANSACTION_AMOUNT", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string TRANSACTION_CURRENCY = dgv_trans["TRANSACTION_CURRENCY", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string AUTHORIZATION_CODE = dgv_trans["AUTHORIZATION_CODE", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string CODE_ACTION = dgv_trans["CODE_ACTION", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                string TRANSACTION_LOCAL_DATE = dgv_trans["TRANSACTION_LOCAL_DATE", dgv_trans.CurrentCell.RowIndex].Value.ToString ( ).Trim ( );
                Frm_Transactions_Monitor_Update a = new Frm_Transactions_Monitor_Update ( );
                a.type = "0";
                //}
                a.message_type = MESSAGE_TYPE;
                a.card_nbr = CARD_NUMBER;// dgv_trans["", dgv_trans.CurrentCell.RowIndex].Value.ToString();
                a.trans_amount = TRANSACTION_AMOUNT;
                a.code_action = CODE_ACTION;
                a.trans_date = TRANSACTION_LOCAL_DATE;
                a.ShowDialog ( );
                LoadData ( );
            }
            else
                return;
        }