public void Start() { foreach (var cam in _manager.SettingsList) { var cmd = new VLCCommand(cam.GetConnectionString(), cam.Port_vlc); WinApp.Execute(pathToVLC, cmd.GetString()); } }
public ActionResult Translation(string id) { string IpCamCapture = ConfigurationManager.AppSettings["pathToCapture"]; try { WinApp.Execute(IpCamCapture, id, false); ViewBag.TranslationResult = "Команда " + id + " выполнена"; } catch (Exception ex) { ViewBag.TranslationResult = "Прозошла ошибка: " + ex.Message; } return(View()); }