示例#1
0
        public MainForm()
        {
            InitializeComponent();
            InitializeInputManager();

            arDroneControl = new ARDroneControl();

            InitializeAviationControls();

            videoRecorder = new VideoRecorder();
            snapshotRecorder = new SnapshotRecorder();

            videoRecorder.CompressionComplete += new EventHandler(videoRecorder_CompressionComplete);
            videoRecorder.CompressionError += new ErrorEventHandler(videoRecorder_CompressionError);
        }
        private void InitializeRecorders()
        {
            videoRecorder = new VideoRecorder();
            snapshotRecorder = new SnapshotRecorder();

            videoRecorder.CompressionComplete += new EventHandler(videoRecorder_CompressionComplete);
            videoRecorder.CompressionError += new System.IO.ErrorEventHandler(videoRecorder_CompressionError);
        }