static void Main(string[] Args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form f = new Form1(); //FormSIMW f1 = new FormSIMW(); LC.GD(f); //LC.GD(f1); if (!Directory.Exists(Application.StartupPath + "\\Temp")) { Directory.CreateDirectory(Application.StartupPath + "\\Temp"); } var argsl = Args.ToList(); //f.PUBLIC_USER_CHOICE_FILE_SELECTED.Add("PARALLEL_ASYNC_OPERATION"); if (argsl.Contains("PARALLEL_ASYNC_OPERATION")) { Core.isParallel = true; (f as Form1).PUBLIC_ACCESSIBLE_ACCB.AddTextToACCB(" *(P_A_O)*"); argsl.RemoveAt(argsl.IndexOf("PARALLEL_ASYNC_OPERATION")); } (f as Form1).PUBLIC_USER_CHOICE_FILE_SELECTED = argsl; //argsl.Add("SIMW"); if (argsl.Contains("SIMW")) { f = new FormSIMW(); (f as FormSIMW).PUBLIC_ACCESSIBLE_ACCB.AddTextToACCB(" *(SIMW)*"); (f as FormSIMW).PUBLIC_ACCESSIBLE_ACCB.AddTextToACCB(" *(P_A_O)*"); argsl.RemoveAt(argsl.IndexOf("SIMW")); } Application.Run(f); }