private static void AddCameraToDatabase(string type, string model, string prefix, string source, string url, string cookies, string flags, int port) { try { var r = new Reporting.Reporting { Timeout = 8000 }; r.AddCamera2(type, model, prefix, source, url, cookies, flags, port); r.Dispose(); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
private static void AddCameraToDatabase(string type, string model, string prefix, string source, string url, string cookies, string flags, int port) { try { var r = new Reporting.Reporting { Timeout = 8000 }; r.AddCamera2(type, model, prefix, source, url, cookies, flags, port); r.Dispose(); } catch (Exception ex) { MainForm.LogExceptionToFile(ex); } }