Ejemplo n.º 1
0
        public AppModel()
        {
            if (_Instance != null)
            {
                _CurrentViewSwitchInfo = _Instance._CurrentViewSwitchInfo;
            }
            _Instance = this;
            string wd = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            _FrameConfig = new FrameJsonConfig(Path.Combine(wd, "PhotoFrameConfig.json"));
            _FrameConfig.FrameConfigChanged += (s, e) =>
            {
                InitAppWithConfig(_FrameConfig);
            };
            InitAppWithConfig(_FrameConfig);
        }
Ejemplo n.º 2
0
        protected ViewSwitchInfo CreateUUT(string viewResourceId, ViewSwitchType viewSwitchType)
        {
            var result = new ViewSwitchInfo(viewResourceId, _ViewModelMock, viewSwitchType);

            return(result);
        }
Ejemplo n.º 3
0
 public void SwitchToView(ViewSwitchInfo switchInfo)
 {
     CurrentViewSwitchInfo = switchInfo;
 }