private void ExecuteSelectProcess() { var process = ApplicationController.ShowProcessDialog(); if (process != null) { InspectionProcess.SetProcess(process); } }
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(); } } }