예제 #1
0
        public SystemControlView()
        {
            InitializeComponent();
            if (DesignerProperties.GetIsInDesignMode(this))
            {
                return;
            }

            _warden      = App.Instance.warden;
            _onvifDevice = _warden.visDevice;
            _fdCanvas    = App.Instance.fdCanvas;

            //
            _ptzSpeed = 1;
            //sliderPtzSpeed.Value = _ptzSpeed;
        }
예제 #2
0
        public void DoMain()
        {
            //
            _dcService = new DeviceConfigService();
            _warden    = new YoseenWarden();

            _dataAccess  = new DataAccess(AppStatic.FileDb);
            _busiManager = new BusiManager();
            _busiManager.StartWork();

            //
            _clsHead = _dcService._clsHead;
            _clsHead.PropertyChanged += _clsHead_PropertyChanged;
            EnableScreenCapture(_clsHead.Misc_EnableScreenCapture);


            //
            ShellView shellView = new ShellView();

            _fdCanvas  = shellView.fdCanvas;
            _shellView = shellView;
            this.Run(_shellView);
        }