Esempio n. 1
0
        public WaitScreenViewModel(IWaitScreenView view)
            : base(view)
        {
            if (Application.Current != null)
            {
                _dispatcher = Application.Current.Dispatcher;
            }
            _hideTimer          = new Timer();
            _hideTimer.Elapsed += HideTimerElapsed;
            _hideTimer.Interval = 300;
            _hideTimer.Enabled  = false;

            Enabled = true;

            ((UserControl)view).Loaded += WaitScreenPresenterLoaded;
        }
Esempio n. 2
0
        public WaitScreenViewModel(IWaitScreenView view)
            : base(view)
        {
            if (Application.Current != null)
            {
                _dispatcher = Application.Current.Dispatcher;
            }
            _hideTimer = new Timer();
            _hideTimer.Elapsed += HideTimerElapsed;
            _hideTimer.Interval = 300;
            _hideTimer.Enabled = false;

            Enabled = true;

            ((UserControl)view).Loaded += WaitScreenPresenterLoaded;
        }