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