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()); } }
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(); }
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()); } } }
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(); } }
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 = ""; }
private void btnAll_Click(object sender, EventArgs e) { lvScenics_Load(DiemDL.All()); }