Skip to content

Commit 468479f

Browse files
Feedback changes
1 parent 730ad29 commit 468479f

File tree

1 file changed

+1
-24
lines changed
  • How-to/How-to-View-Formfields-and-Annotations

1 file changed

+1
-24
lines changed

How-to/How-to-View-Formfields-and-Annotations/Program.cs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,10 @@ static class Program
2323
[STAThread]
2424
static void Main()
2525
{
26-
SyncfusionLicenseProvider.RegisterLicense(FindLicenseKey());
2726
Application.EnableVisualStyles();
2827
Application.SetCompatibleTextRenderingDefault(false);
2928
Application.Run(new Form1());
3029
}
31-
32-
/// <summary>
33-
/// Finds the license key from the Common folder.
34-
/// </summary>
35-
/// <returns>Returns the license key.</returns>
36-
public static string FindLicenseKey()
37-
{
38-
#if NETCORE
39-
string licenseKeyFile = "..\\..\\Common\\SyncfusionLicense.txt";
40-
#else
41-
string licenseKeyFile = "..\\Common\\SyncfusionLicense.txt";
42-
#endif
43-
for (int n = 0; n < 20; n++)
44-
{
45-
if (!System.IO.File.Exists(licenseKeyFile))
46-
{
47-
licenseKeyFile = @"..\" + licenseKeyFile;
48-
continue;
49-
}
50-
return File.ReadAllText(licenseKeyFile);
51-
}
52-
return string.Empty;
53-
}
30+
5431
}
5532
}

0 commit comments

Comments
 (0)