ME3Explorer.Texplorer2.ChangeTreeIndicators C# (CSharp) Method

ChangeTreeIndicators() private method

private ChangeTreeIndicators ( int game, bool state ) : void
game int
state bool
return void
        private void ChangeTreeIndicators(int game, bool state)
        {
            if (MainTreeView.InvokeRequired)
                MainTreeView.Invoke(new Action(() => ChangeTreeIndicators(game, state)));
            else
            {
                DebugOutput.PrintLn("Changing tree indicator of Game: " + game + " to: " + state);
                Color color = state ? Color.LightGreen : Color.Red;
                switch (game)
                {
                    case 1:
                        Tree1Label.ForeColor = color;
                        break;
                    case 2:
                        Tree2Label.ForeColor = color;
                        break;
                    case 3:
                        Tree3Label.ForeColor = color;
                        break;
                }
            }
        }
Texplorer2