private void EditBtn_Click(object sender, EventArgs e) { if (this.SelectedLink != null) { int link = this.fLinks.IndexOf(this.SelectedLink); TokenLinkForm tokenLinkForm = new TokenLinkForm(this.SelectedLink); if (tokenLinkForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.fLinks[link] = tokenLinkForm.Link; this.update_list(); } } }
private void EditBtn_Click(object sender, EventArgs e) { if (SelectedLink != null) { int index = fLinks.IndexOf(SelectedLink); TokenLinkForm dlg = new TokenLinkForm(SelectedLink); if (dlg.ShowDialog() == DialogResult.OK) { fLinks[index] = dlg.Link; update_list(); } } }