private void mnuILCProperties_Click(object sender, EventArgs e) { foreach (ListViewItem LVI in this.lstItems.SelectedItems) { ThingPropertyPages TPP = new ThingPropertyPages(LVI.Tag as Item); TPP.Show(this); } }
private void ListView_DoubleClick(object sender, EventArgs e) { ListView LV = sender as ListView; foreach (ListViewItem LVI in LV.SelectedItems) { ThingPropertyPages TPP = new ThingPropertyPages(LVI.Tag as IThing); TPP.Show(this); } }
private void lstFields_ItemActivate(object sender, EventArgs e) { if (this.lstFields.SelectedItems != null && this.lstFields.SelectedItems.Count > 0) { Things.IThing T = this.lstFields.SelectedItems[0].Tag as Things.IThing; if (T != null) { using (ThingPropertyPages TPP = new ThingPropertyPages(T)) TPP.ShowDialog(this); } } }
private void mnuELCProperties_Click(object sender, EventArgs e) { ListView LV = this.mnuEntryListContext.SourceControl as ListView; if (LV != null) { foreach (ListViewItem LVI in LV.SelectedItems) { ThingPropertyPages TPP = new ThingPropertyPages(LVI.Tag as IThing); TPP.Show(this); } } }