static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); _mainForm = new FormMain(); ProcessInit.Run(_mainForm, NewInstanceHandler); }
IProcess CreateProcess(int process, int workflowId, String client) { switch (process) { case ParamAppli.ProcessControlePacks: return(ProcessControlePacks.CreateProcess(workflowId, client)); case ParamAppli.ProcessAnalyseImpact: return(ProcessAnalyseImpact.CreateProcess(workflowId, client)); case ParamAppli.ProcessInit: return(ProcessInit.CreateProcess(workflowId, client)); case ParamAppli.ProcessGestionDependance: return(ProcessGestionDependance.CreateProcess(workflowId, client)); case ParamAppli.ProcessIntegration: return(ProcessIntegration.CreateProcess(workflowId, client)); case ParamAppli.ProcessProcessusCritique: return(ProcessProcessusCritique.CreateProcess(workflowId, client)); case ParamAppli.ProcessTNR: return(ProcessTNR.CreateProcess(workflowId, client)); case ParamAppli.ProcessLivraison: return(ProcessLivraison.CreateProcess(workflowId, client)); default: return(ProcessMock.CreateProcess(workflowId, client)); } }
public Lite_Process(ProcessInit initType) { switch (initType) { case ProcessInit.CurrentProcess: this._process = Process.GetCurrentProcess(); break; } }
public static void Run(Form f, StartupNextInstanceEventHandler startupHandler) { var app = new ProcessInit { MainForm = f }; app.StartupNextInstance += startupHandler; app.Run(Environment.GetCommandLineArgs()); }