public SystemControlView() { InitializeComponent(); if (DesignerProperties.GetIsInDesignMode(this)) { return; } _warden = App.Instance.warden; _onvifDevice = _warden.visDevice; _fdCanvas = App.Instance.fdCanvas; // _ptzSpeed = 1; //sliderPtzSpeed.Value = _ptzSpeed; }
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); }