示例#1
0
 public void Start()
 {
     foreach (var cam in _manager.SettingsList)
     {
         var cmd = new VLCCommand(cam.GetConnectionString(), cam.Port_vlc);
         WinApp.Execute(pathToVLC, cmd.GetString());
     }
 }
示例#2
0
        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());
        }