コード例 #1
0
 static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     _mainForm = new FormMain();
     ProcessInit.Run(_mainForm, NewInstanceHandler);
 }
コード例 #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));
            }
        }
コード例 #3
0
ファイル: Lite_Process.cs プロジェクト: PavilionVI/LiteCode
 public Lite_Process(ProcessInit initType)
 {
     switch (initType)
     {
         case ProcessInit.CurrentProcess:
             this._process = Process.GetCurrentProcess();
             break;
     }
 }
コード例 #4
0
ファイル: Lite_Process.cs プロジェクト: thrdev/LiteCode
 public Lite_Process(ProcessInit initType)
 {
     switch (initType)
     {
     case ProcessInit.CurrentProcess:
         this._process = Process.GetCurrentProcess();
         break;
     }
 }
コード例 #5
0
            public static void Run(Form f, StartupNextInstanceEventHandler startupHandler)
            {
                var app = new ProcessInit {
                    MainForm = f
                };

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