Exemple #1
0
        async void _showEventPopup(object message)
        {
            Dispatcher.Invoke(() =>
            {
                var m = message as ShowEventPopupMessage;

                if (m?.Entry == null)
                {
                    return;
                }

                if (_popupView != null)
                {
                    _popupView.Close();
                }

                _popupView = _scope.Resolve<EventPopupView>();
                

                _popupView.Show();

                _popupView.SetEvent(m.Entry, m.Offset);
            });
            
        }
Exemple #2
0
        void _hideEventPopup()
        {
            Dispatcher.Invoke(() =>
            {
                if (_popupView != null)
                {
                    _popupView.Close();
                }
                _popupView = null;

            });
        }