Esempio n. 1
0
 static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     _mainForm = new FormMain();
     ProcessInit.Run(_mainForm, NewInstanceHandler);
 }
Esempio n. 2
0
        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));
            }
        }
Esempio n. 3
0
 public Lite_Process(ProcessInit initType)
 {
     switch (initType)
     {
         case ProcessInit.CurrentProcess:
             this._process = Process.GetCurrentProcess();
             break;
     }
 }
Esempio n. 4
0
 public Lite_Process(ProcessInit initType)
 {
     switch (initType)
     {
     case ProcessInit.CurrentProcess:
         this._process = Process.GetCurrentProcess();
         break;
     }
 }
Esempio n. 5
0
            public static void Run(Form f, StartupNextInstanceEventHandler startupHandler)
            {
                var app = new ProcessInit {
                    MainForm = f
                };

                app.StartupNextInstance += startupHandler;
                app.Run(Environment.GetCommandLineArgs());
            }