You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using System.Windows.Forms.VisualStyles;
namespace CircleViewer { static class Program { /// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread] static void Main(string[] args) { if (args.Length > 1) { if (string.Compare(args[0], "protect", StringComparison.CurrentCultureIgnoreCase) == 0) { if (File.Exists(args[1])) { ProtectCmd cmd = new ProtectCmd(); Boolean b = cmd.Process(args[1]).Result; } }
if (string.Compare(args[0], "details", StringComparison.CurrentCultureIgnoreCase) == 0) { if (File.Exists(args[1])) { //Register Syncfusion license for WinForm, File formats, asp.net core and Xamarin
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("NTk3ODAxQDMxMzkyZTM0MmUzMGUwSmdnR0h1cEJxajFlUWU2UTkrZ3IwMUwzQlNRaU1FV0dmMmpzQlA3Mms9;NTk3ODAyQDMxMzkyZTM0MmUzMExlNW9vY2xNYWtGTWxpYms0VkNzYS9uNWNoa3pIcU9SOHBENFkxZmdLUW89;NTk3ODAzQDMxMzkyZTM0MmUzMFl2andNWXNiTVBMSDhzZUlBRVZLSWgxOC84Q3lBa0NLNWNGc2FhSE8wYTg9;NTk3ODA0QDMxMzkyZTM0MmUzMGtxeEpnSWZ4RzhFamVaTlBINUhaTERVMWRNczNCQVdXRXVzdEl5S3BHM0k9");
DetailsCmd cmd = new DetailsCmd(); cmd.Display(args[1]); } } } else { //Register Syncfusion license for WinForm, File formats, asp.net core and Xamarin
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("NTk3ODAxQDMxMzkyZTM0MmUzMGUwSmdnR0h1cEJxajFlUWU2UTkrZ3IwMUwzQlNRaU1FV0dmMmpzQlA3Mms9;NTk3ODAyQDMxMzkyZTM0MmUzMExlNW9vY2xNYWtGTWxpYms0VkNzYS9uNWNoa3pIcU9SOHBENFkxZmdLUW89;NTk3ODAzQDMxMzkyZTM0MmUzMFl2andNWXNiTVBMSDhzZUlBRVZLSWgxOC84Q3lBa0NLNWNGc2FhSE8wYTg9;NTk3ODA0QDMxMzkyZTM0MmUzMGtxeEpnSWZ4RzhFamVaTlBINUhaTERVMWRNczNCQVdXRXVzdEl5S3BHM0k9");
Application.EnableVisualStyles(); Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } } }
|