private void btEdit_Click(object sender, EventArgs e) { if (listBoxMain.SelectedIndex != -1) { LinkType test = new LinkType(); test = (LinkType)listBoxMain.SelectedItem; FormEditLink myEdit = new FormEditLink(); myEdit.Edit = test; myEdit.ShowDialog(); ListBoxMainRefresh(); } }
private void btEdit_Click(object sender, EventArgs e) { if (listBoxMain.SelectedIndex != -1) { LinkType test = new LinkType(); test = (LinkType)listBoxMain.SelectedItem; FormEditLink myEdit = new FormEditLink(); myEdit.Edit = test; myEdit.ShowDialog(); ListBoxMainRefresh(); } }