private void btAdd_Click(object sender, EventArgs e) { ListViewItem lvi = NewDomain(""); FEditDomain.Execute(lvi.Tag as DDnsDomain); UpdateItem(lvi); }
private void lvList_DoubleClick(object sender, EventArgs e) { if (lvList.SelectedItems.Count != 1) { return; } ListViewItem lvi = lvList.SelectedItems[0]; FEditDomain.Execute(lvi.Tag as DDnsDomain); UpdateItem(lvi); }
public static void Execute(DDnsDomain d) { using (FEditDomain f = new FEditDomain(d)) f.ShowDialog(); }