Bricklayer.Client.Game.MainWindow_FocusGained C# (CSharp) 메소드

MainWindow_FocusGained() 개인적인 메소드

Called when the MainWindow gains focus
private MainWindow_FocusGained ( object sender, TomShane e ) : void
sender object
e TomShane
리턴 void
        void MainWindow_FocusGained(object sender, TomShane.Neoforce.Controls.EventArgs e)
        {
            if (CurrentGameState == GameState.Game && (MainWindow.ScreenManager.Current as GameScreen).PlayerList != null)
            {
                ListBox playerList = (MainWindow.ScreenManager.Current as GameScreen).PlayerList;
                playerList.ItemIndex = -1;
                playerList.Focused = false;
            }
        }