static void Main(string[] args) { var job = new Job(); if (!job.AddFile(Assembly.GetExecutingAssembly().Location /*"MyMainPalindromModule.exe"*/)) { Console.WriteLine("File doesn't exist"); return; } (new MainPalindromModule()).Run(new ModuleInfo(job, null)); Console.ReadKey(); }
public static void Main(string[] args) { try { if (args.Length != 0) { for (int i = 0; i < args.Length; i++) { if (args[i] == "-d") { mode = true; } if (args[i] == "-p") { if (args[i + 1] != null) { pointsNum = Convert.ToInt32(args[i + 1]); } } } } } catch (Exception ex) { Console.WriteLine(ex.Message); Console.ReadKey(); } var job = new Job(); if (!job.AddFile(Assembly.GetExecutingAssembly().Location /*"MyFirstModule.exe"*/)) { Console.WriteLine("File doesn't exist"); return; } (new MainRSAModule()).Run(new ModuleInfo(job, null)); Console.ReadKey(); }