public QueuePopOverlay(GameDTO InitialDTO, Page previousPage)
        {
            if (InitialDTO == null)
                return;

            InitializeComponent();
            Client.FocusClient();
            InitializePop(InitialDTO);
            this.previousPage = previousPage;
            page = new ChampSelectPage(InitialDTO.RoomName, InitialDTO.RoomPassword);
            TimeLeft = InitialDTO.JoinTimerDuration;
            Client.RiotConnection.MessageReceived += PVPNet_OnMessageReceived;
            QueueTimer = new Timer(1000);
            QueueTimer.Elapsed += QueueElapsed;
            QueueTimer.Enabled = true;
            Client.MainWin.FlashWindow();
            if (!Properties.Settings.Default.DisableClientSound)
                QueuePopSound.PlayQueuePopSound();
        }
Beispiel #2
0
        public QueuePopOverlay(GameDTO InitialDTO, Page previousPage)
        {
            if (InitialDTO == null)
            {
                return;
            }

            InitializeComponent();
            Client.FocusClient();
            InitializePop(InitialDTO);
            this.previousPage = previousPage;
            page     = new ChampSelectPage(InitialDTO.RoomName, InitialDTO.RoomPassword);
            TimeLeft = InitialDTO.JoinTimerDuration;
            Client.PVPNet.OnMessageReceived += PVPNet_OnMessageReceived;
            QueueTimer          = new Timer(1000);
            QueueTimer.Elapsed += QueueElapsed;
            QueueTimer.Enabled  = true;
            Client.MainWin.FlashWindow();
            QueuePopSound.PlayQueuePopSound();
        }