Beispiel #1
0
        private void ServiceListener(Object sender, EventArgs e)
        {
            DataEventArgs args = e as DataEventArgs;

            if (args != null)
            {
                switch (args.getDataType())
                {
                case "6":     // Queued Match
                    this.Invoke(new MethodInvoker(() => UpdateQueuedMatch(args.getDivision())));
                    if (Config.IncludeFox)
                    {
                        this.Invoke(new MethodInvoker(() => UpdateFox(args.getDivision())));
                    }
                    break;

                case "12":     // Audience Display Match
                    this.Invoke(new MethodInvoker(() => UpdateAudienceDisplay(args.getDivision())));
                    if (Config.IncludeFox)
                    {
                        this.Invoke(new MethodInvoker(() => UpdateFox(args.getDivision())));
                    }
                    break;

                case "fox":     // Fox Division Change
                    this.Invoke(new MethodInvoker(() => UpdateSelectedFox(args.getDivision())));
                    break;
                }
            }
        }