Ejemplo n.º 1
0
        private void listDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            //row = listDataGridView.CurrentCell.RowIndex;
            //column = listDataGridView.CurrentCell.ColumnIndex;
            order_Num = listDataGridView.CurrentRow.Cells[0].Value.ToString();
            string      name        = listDataGridView.CurrentRow.Cells[2].Value.ToString();
            string      phone       = listDataGridView.CurrentRow.Cells[3].Value.ToString();
            string      card        = listDataGridView.CurrentRow.Cells[4].Value.ToString();
            HIQueryList hIQueryList = new HIQueryList(order_Num, name, phone, card);

            hIQueryList.ShowDialog();
        }
Ejemplo n.º 2
0
 private void HistoryInform_KeyDown(object sender, KeyEventArgs e)
 {
     //if (queryTextBox.Focused)
     //{
     //    queryNum();
     //}
     if (e.KeyCode == Keys.Enter)
     {
         order_Num = listDataGridView.CurrentRow.Cells[0].Value.ToString();
         string      name        = listDataGridView.CurrentRow.Cells[2].Value.ToString();
         string      phone       = listDataGridView.CurrentRow.Cells[3].Value.ToString();
         string      card        = listDataGridView.CurrentRow.Cells[4].Value.ToString();
         HIQueryList hIQueryList = new HIQueryList(order_Num, name, phone, card);
         hIQueryList.ShowDialog();
     }
     if (e.KeyCode == Keys.Escape)
     {
         returnButton_Click(this, EventArgs.Empty);
     }
 }