コード例 #1
0
        private void BtnThemHH_Click(object sender, EventArgs e)
        {
            popop_DatHang dh = new popop_DatHang("", "", "", "", "", "", "");

            dh.ShowDialog();
            LoadGridKhoHang();
        }
コード例 #2
0
 private void grdHang_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         DataRowView   row = (DataRowView)gridView1.GetRow(gridView1.GetSelectedRows()[0]);
         popop_DatHang dh  = new popop_DatHang(row[0].ToString(),
                                               row[1].ToString(),
                                               row[4].ToString(),
                                               row[13].ToString(),
                                               row[9].ToString(),
                                               row[7].ToString(),
                                               row[12].ToString());
         dh.ShowDialog();
         LoadGridKhoHang();
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.Message, Commons.Notify, MessageBoxButtons.OK);
     }
 }