示例#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);
 }