예제 #1
0
        private void ExecuteSelectProcess()
        {
            var process = ApplicationController.ShowProcessDialog();

            if (process != null)
            {
                InspectionProcess.SetProcess(process);
            }
        }
예제 #2
0
        private void ExecuteRunProcess(object param)
        {
            if (IsValid)
            {
                var dict = new Dictionary <string, string>();
                dict.Add(Constants.OaNoCache, "1");
                var id = _process.Start(FilePath, Arguments, dict);

                if (id > 0)
                {
                    _inspectionProcess.SetProcess(Process.GetProcessById(id));
                    var wnd = param as Window;
                    wnd?.Close();
                }
            }
        }