コード例 #1
0
ファイル: SuaDoan.cs プロジェクト: xuanthu9x/QuanLyTourDuLich
 private void cbbMaTour_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         int       maTour   = int.Parse(cbbMaTour.Text);
         DataTable tbMaDoan = doan.getDsMaDoan(maTour);
         cbbMaDoan.DataSource = tbMaDoan;
     }
     catch (Exception) { }
 }
コード例 #2
0
 private void cbbMaTour_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         int maTour = int.Parse(cbbMaTour.Text);
         tbMaDoan = doan.getDsMaDoan(maTour);
         DataRow row = tbMaDoan.NewRow();
         row[0] = -1;
         tbMaDoan.Rows.Add(row);
         cbbMaDoan.DataSource = tbMaDoan;
         cbbMaDoan.Text       = "-1";
     }
     catch (Exception) { }
 }