private void btnBrowse_Click(object sender, EventArgs e) { var dialog = new OpenFileDialog(); dialog.CheckPathExists = true; dialog.DefaultExt = ".lic"; dialog.Title = Strings.DialogTitleLoadLicense; dialog.Filter = string.Join(@"|", Strings.DialogFilterLicenseFile, Strings.DialogFilterAllFile); if (dialog.ShowDialog() == DialogResult.OK) { _LicenseFile = File.ReadAllBytes(dialog.FileName); var licenseKey = LicenseService.ConvertLicenseFileToKey(dialog.FileName); LicenseService.Activate(@"Open Source", @"Revit Exporter", licenseKey); RefreshUI(); } }