Пример #1
0
        void IQueueManager.ShowQueuePopup(IQueuePopup popup)
        {
            CurrentPopup        = popup;
            CurrentPopup.Close += CurrentPopup_Close;

            PopupPanel.BeginStoryboard(App.FadeIn);
            PopupPanel.Child = popup.Control;
        }
Пример #2
0
 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;
     }
 }
Пример #3
0
 private void CurrentPopup_Close(object sender, QueueEventArgsa e)
 {
     Dispatcher.Invoke(() => PopupPanel.BeginStoryboard(App.FadeOut));
     CurrentPopup.Close -= CurrentPopup_Close;
     CurrentPopup        = null;
 }
Пример #4
0
 private void PopupClose_Click(object sender, RoutedEventArgs e)
 {
     PopupPanel.BeginStoryboard(App.FadeOut);
 }