예제 #1
0
파일: Localsfrm.cs 프로젝트: thaimoc/ETour
        private void itemAdd_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            Localfrm frm = new Localfrm();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                lvLocals_Load(DiaDiemDL.All());
                cbbCounty.DataSource = DiaDiemDL.AllCountries();
            }
        }
예제 #2
0
파일: Localsfrm.cs 프로젝트: thaimoc/ETour
 private void itemUpdate_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     if (lvLocals.SelectedItems.Count > 0)
     {
         Localfrm frm = new Localfrm();
         frm.Code = MyConvert.ToInt32(lvLocals.SelectedItems[0].SubItems[0].Text);
         frm.ShowDialog();
         if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             lvLocals_Load(DiaDiemDL.All());
             cbbCounty.DataSource = DiaDiemDL.AllCountries();
         }
     }
 }
예제 #3
0
파일: Localsfrm.cs 프로젝트: thaimoc/ETour
 private void cbbCountry_Load()
 {
     cbbCounty.DataSource    = DiaDiemDL.AllCountries();
     cbbCounty.DisplayMember = "QuocGia";
     cbbCounty.ValueMember   = "QuocGia";
 }