Ejemplo n.º 1
0
        /// <summary>
        /// 开户:新增商户+绑定IC卡
        /// </summary>
        private void CreateAccount()
        {
            eventPause = true;
            FormMerchant frm = new FormMerchant(tbxCardId.Text, tbxCardId.Tag, this, api);

            frm.ShowDialog();
            eventPause = false;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 表格操作事件:编辑
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvCardInfo_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     // 点击编辑
     if (dgvMerchant.Columns[e.ColumnIndex].HeaderText == "操作")
     {
         DataTable dt   = dtMerchant.Clone();
         DataRow[] rows = dtMerchant.Select("Index=" + dgvMerchant.Rows[e.RowIndex].Cells[0].Value);
         eventPause = true;
         FormMerchant frm = new FormMerchant(rows[0], api, this);
         frm.ShowDialog();
         eventPause = false;
     }
 }