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 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()); } } }