private void lvDistros_HyperlinkClicked(object sender, BrightIdeasSoftware.HyperlinkClickedEventArgs e) { e.Handled = true; if (e.Column.AspectName == "EditText") { PartnerAdd form = new PartnerAdd(partners, (Partner)e.Model); form.OnSave += form_OnSave; form.ShowDialog(); } else if (e.Column.AspectName == "DeleteText") { DeleteConfirm confirm = new DeleteConfirm(); if (confirm.ShowDialog() == DialogResult.OK) { repo.Delete((Partner)e.Model, ApplicationData.Instance.GetUserId()); lvDistros.SetObjects(repo.GetPartners()); OnSave(); } } }
private void fieldLink1_OnClick() { PartnerAdd form = new PartnerAdd(partners); form.OnSave += form_OnSave; form.ShowDialog(); }