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); }); }
void _hideEventPopup() { Dispatcher.Invoke(() => { if (_popupView != null) { _popupView.Close(); } _popupView = null; }); }