示例#1
0
        //private bool mAlarmIsRunning = false;

        public CameraView()
        {
            InitializeComponent();
            mPTZControl = new PTZControl(this);
            this.toolStripMain.Items.AddRange(mPTZControl.ToolStripItemCollection.ToArray());

            mStatus = new Motion.Core.CameraStatus((int)Motion.Core.CameraStatus.STOPPED);
            Translator.Instance.Update(this);

            MotionPreference.Instance.UpdateUI(this);

            mStat = new CameraStatistics();
            mMotionDetector.ObjectCoupledSize = false;

            this.toolStripComboBoxResolution.SelectedIndex = 0;

            this.trackBarElapse.Maximum = ValueRange.AlarmElapseMax;
            this.trackBarElapse.Minimum = ValueRange.AlarmElapseMin;
            this.trackBarElapse.Value   = ValueRange.AlarmElapseDefault;
            this.trackBarElapse.NumericUpDown.ValueChanged += new EventHandler(trackBarElapse_ValueChanged);

            this.trackBarSensi.Maximum = ValueRange.SensibilityMax;
            this.trackBarSensi.Minimum = ValueRange.SensibilityMin;
            this.trackBarSensi.Value   = ValueRange.SensibilityDefault;
            this.trackBarSensi.NumericUpDown.ValueChanged += new EventHandler(trackBarSensi_ValueChanged);

            this.trackBarDifferenceThreshold.Maximum = ValueRange.DifferenceThresholdMax;
            this.trackBarDifferenceThreshold.Minimum = ValueRange.DifferenceThresholdMin;
            this.trackBarDifferenceThreshold.Value   = ValueRange.DifferenceThresholdDefault;
            this.trackBarDifferenceThreshold.NumericUpDown.ValueChanged += new EventHandler(trackBarDifferenceThreshold_ValueChanged);

            this.panelCameraViewEdit.Visible = false;
            this.UpdateUIWithFrame();
        }
示例#2
0
        //private bool mAlarmIsRunning = false;
        public CameraView()
        {
            InitializeComponent();
            mPTZControl = new PTZControl(this);
            this.toolStripMain.Items.AddRange(mPTZControl.ToolStripItemCollection.ToArray());

            mStatus = new Motion.Core.CameraStatus((int)Motion.Core.CameraStatus.STOPPED);
            Translator.Instance.Update(this);

            MotionPreference.Instance.UpdateUI(this);

            mStat = new CameraStatistics();
            mMotionDetector.ObjectCoupledSize = false;

            this.toolStripComboBoxResolution.SelectedIndex = 0;

            this.trackBarElapse.Maximum = ValueRange.AlarmElapseMax;
            this.trackBarElapse.Minimum = ValueRange.AlarmElapseMin;
            this.trackBarElapse.Value = ValueRange.AlarmElapseDefault;
            this.trackBarElapse.NumericUpDown.ValueChanged += new EventHandler(trackBarElapse_ValueChanged);

            this.trackBarSensi.Maximum = ValueRange.SensibilityMax;
            this.trackBarSensi.Minimum = ValueRange.SensibilityMin;
            this.trackBarSensi.Value = ValueRange.SensibilityDefault;
            this.trackBarSensi.NumericUpDown.ValueChanged += new EventHandler(trackBarSensi_ValueChanged);

            this.trackBarDifferenceThreshold.Maximum = ValueRange.DifferenceThresholdMax;
            this.trackBarDifferenceThreshold.Minimum = ValueRange.DifferenceThresholdMin;
            this.trackBarDifferenceThreshold.Value = ValueRange.DifferenceThresholdDefault;
            this.trackBarDifferenceThreshold.NumericUpDown.ValueChanged += new EventHandler(trackBarDifferenceThreshold_ValueChanged);

            this.panelCameraViewEdit.Visible = false;
            this.UpdateUIWithFrame();
        }