private void LicenseSections_SelectedIndexChanged(object sender, EventArgs e) { if (LicenseSections.SelectedItem as Duplicati.License.LicenseEntry != null) { Duplicati.License.LicenseEntry l = LicenseSections.SelectedItem as Duplicati.License.LicenseEntry; LicenseText.Text = l.License; LicenseLink.Visible = !string.IsNullOrEmpty(l.Url); } }
private void LicenseLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (LicenseSections.SelectedItem as Duplicati.License.LicenseEntry != null) { Duplicati.License.LicenseEntry l = LicenseSections.SelectedItem as Duplicati.License.LicenseEntry; if (!string.IsNullOrEmpty(l.Url)) { Duplicati.Library.Utility.UrlUtillity.OpenUrl(l.Url); } } }