//private static void EncodedJson()
        //{
        //    Debug.Print(Debug.GC(false).ToString());
        //    Debug.Print(Debug.GC(true).ToString());
        //    string encoded = Resources.GetString(Resources.StringResources.EncodedJson);
        //    string decoded = HttpUtility.HtmlDecode(encoded);
        //    Command command = CommandHelpers.CommandFromJson(decoded);
        //    Debug.Print(Debug.GC(false).ToString());
        //    npr.RunCommand(command);
        //    Debug.Print(Debug.GC(false).ToString());
        //}

        //private static void TestJson()
        //{
        //    Debug.Print(Debug.GC(false).ToString());
        //    Command command = CommandHelpers.CommandFromJson(
        //        Resources.GetString(Resources.StringResources.TestJson));
        //    Debug.Print(Debug.GC(false).ToString());
        //    npr.RunCommand(command);
        //}

        //private static void SmallJson()
        //{
        //    Command command = CommandHelpers.CommandFromJson(
        //        Resources.GetString(Resources.StringResources.SmallJson));
        //    npr.RunCommand(command);
        //}

        protected static void StartNeoPixel()
        {
            npr = new NeoPixelRing(NumberOfLeds, "neopixel01");

            CreateCyclesCollection();

            neoPixelThread          = new Thread(StartNeoPixelThread);
            neoPixelThread.Priority = ThreadPriority.Lowest;
            neoPixelThread.Start();
        }
        //private static void EncodedJson()
        //{
        //    Debug.Print(Debug.GC(false).ToString());
        //    Debug.Print(Debug.GC(true).ToString());
        //    string encoded = Resources.GetString(Resources.StringResources.EncodedJson);
        //    string decoded = HttpUtility.HtmlDecode(encoded);
        //    Command command = CommandHelpers.CommandFromJson(decoded);
        //    Debug.Print(Debug.GC(false).ToString());
        //    npr.RunCommand(command);
        //    Debug.Print(Debug.GC(false).ToString());
        //}
        //private static void TestJson()
        //{
        //    Debug.Print(Debug.GC(false).ToString());
        //    Command command = CommandHelpers.CommandFromJson(
        //        Resources.GetString(Resources.StringResources.TestJson));
        //    Debug.Print(Debug.GC(false).ToString());
        //    npr.RunCommand(command);
        //}
        //private static void SmallJson()
        //{
        //    Command command = CommandHelpers.CommandFromJson(
        //        Resources.GetString(Resources.StringResources.SmallJson));
        //    npr.RunCommand(command);
        //}
        protected static void StartNeoPixel()
        {
            npr = new NeoPixelRing(NumberOfLeds, "neopixel01");

            CreateCyclesCollection();

            neoPixelThread = new Thread(StartNeoPixelThread);
            neoPixelThread.Priority = ThreadPriority.Lowest;
            neoPixelThread.Start();
        }