Beispiel #1
0
        private void Save()
        {
            //We have 1 camera we are saving.
            List <string> VariablesToSave = new List <string>()
            {
                "Debugging_Level",
            };

            Console.SaveToFile(Filename, VariablesToSave.ToArray());
        }
Beispiel #2
0
        private void Save()
        {
            // We have 1 camera we are saving.
            List <string> VariablesToSave = new List <string>()
            {
                V_encoder_path,
                V_encoder_stream_args,
                V_camera_save_path,
            };

            Console.SaveToFile(FilenameSettings, VariablesToSave.ToArray());
            Save_cameras();
        }
Beispiel #3
0
        private void Save_cameras()
        {
            // This should be safe, the CheckConsoleInput won't let us set non-numbers
            int count = int.Parse(Console.GetVariable(V_camera_count).Value);

            List <string> VariablesToSave = new List <string>()
            {
                V_camera_count
            };

            for (int id = 0; id < count; id++)
            {
                VariablesToSave.AddRange(new string[]
                {
                    string.Format(V_camera_url, id),
                    string.Format(V_camera_stream_args, id),
                    string.Format(V_camera_save_format, id),
                    string.Format(V_camera_enabled, id),
                    string.Format(V_camera_stream_enabled, id),
                });
            }

            Console.SaveToFile(FilenameCameras, VariablesToSave.ToArray());
        }