예제 #1
0
        private void dataGridViewCustomers_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            DataGridViewRow row      = this.dataGridViewCustomers.Rows[e.RowIndex];
            Form            customer = new CustomerProperties(Convert.ToInt16(row.Cells["customerId"].Value));

            customer.ShowDialog();
            refreshDataGridViewCustomers();
        }
예제 #2
0
 private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     //if (!disableDoubleClient) //查询客户详情
     //{
     try
     {
         DataGridViewRow row = this.dataGridViewCustomers.Rows[e.RowIndex];
         Form            bt  = new CustomerProperties(Convert.ToInt16(row.Cells["id"].Value));
         bt.ShowDialog();
         buttonSearch_Click(sender, e);//更新完信息后自动刷新客户列表
     }
     catch (Exception ef)
     {
         MessageBox.Show(ef.ToString());
     }
     //}
     //else //选定客户
     //{
     //    button5_Click(sender, e);//select custormer id
     //}
 }