void IQueueManager.ShowQueuePopup(IQueuePopup popup) { CurrentPopup = popup; CurrentPopup.Close += CurrentPopup_Close; PopupPanel.BeginStoryboard(App.FadeIn); PopupPanel.Child = popup.Control; }
private void PlayRankedTeams(int button) { //TODO Ranked team lobby switch (button) { case 0: TeamCombo.ItemsSource = Session.Current.RankedTeamInfo.PlayerTeams; TeamCombo.SelectedIndex = 0; PopupPanel.BeginStoryboard(App.FadeIn); break; } }
private void CurrentPopup_Close(object sender, QueueEventArgsa e) { Dispatcher.Invoke(() => PopupPanel.BeginStoryboard(App.FadeOut)); CurrentPopup.Close -= CurrentPopup_Close; CurrentPopup = null; }
private void PopupClose_Click(object sender, RoutedEventArgs e) { PopupPanel.BeginStoryboard(App.FadeOut); }