예제 #1
0
        private void itemAdd_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            Scenicfrm frm = new Scenicfrm();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                lvScenics_Load(DiemDL.All());
            }
        }
예제 #2
0
        private void Scenicsfrm_Load(object sender, EventArgs e)
        {
            grbManager.Visible = false;
            if (Powers == PowersLog.Administrator || Powers == PowersLog.Designer)
            {
                grbManager.Visible = true;
            }


            lvScenics_Load(DiemDL.All());
            //cbbColumn_Load();
        }
예제 #3
0
 private void itemUpdate_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     if (lvScenics.SelectedItems.Count > 0)
     {
         Scenicfrm frm = new Scenicfrm();
         frm.Code = MyConvert.ToInt32(lvScenics.SelectedItems[0].SubItems[0].Text);
         frm.ShowDialog();
         if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             lvScenics_Load(DiemDL.All());
         }
     }
 }
예제 #4
0
파일: Hotelfrm.cs 프로젝트: thaimoc/ETour
 private void Hotelfrm_Load(object sender, EventArgs e)
 {
     if (Code == 0)
     {
         btnUpdate.Visible = false;
         clbleft_Load(DiemDL.All());
     }
     else
     {
         btnAdd.Visible       = false;
         btnRightGoTo.Visible = false;
         controls_LoadUp();
     }
 }
예제 #5
0
 private void cbbLocal_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cbbLocal.SelectedIndex > 0)
     {
         DiaDiemDL dd = cbbLocal.SelectedItem as DiaDiemDL;
         cbbScenic_Load(DiemDL.FindByMaDD(dd.ID));
     }
     else
     {
         cbbScenic_Load(DiemDL.All());
     }
     tvScenic.Nodes.Clear();
     btnAddDes.Enabled = false;
     cbbScenic.Text    = "";
 }
예제 #6
0
 private void btnAll_Click(object sender, EventArgs e)
 {
     lvScenics_Load(DiemDL.All());
 }