File tree Expand file tree Collapse file tree
How-to/How-to-View-Formfields-and-Annotations Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments