From 77f93428be41d8aafa595a6b404de633370cdc34 Mon Sep 17 00:00:00 2001 From: Burathar Date: Mon, 20 Apr 2020 23:45:11 +0200 Subject: [PATCH] Remove testing line --- ChromaEffectsImporter/ColoreOutput.cs | 97 +++++++++++++-------------- 1 file changed, 48 insertions(+), 49 deletions(-) diff --git a/ChromaEffectsImporter/ColoreOutput.cs b/ChromaEffectsImporter/ColoreOutput.cs index 89336ab..4d3815a 100755 --- a/ChromaEffectsImporter/ColoreOutput.cs +++ b/ChromaEffectsImporter/ColoreOutput.cs @@ -1,50 +1,49 @@ -using Colore; -using Colore.Data; -using Colore.Effects.Keyboard; -using System; -using System.Threading; - -namespace ChromaEffectsImporter -{ - internal class ColoreOutput - { - private IChroma chroma; - - private string ChromaEffectPath; - - public ColoreOutput(string chromaEffectPath) - { - ChromaEffectPath = chromaEffectPath; - } - - public void Start() - { - Setup(); - LoadChromaEffect(ChromaEffectPath); - Thread.Sleep(1000); - chroma.Keyboard.SetKeyAsync(Key.End, Color.Red, false); - Loop(); - } - - private void LoadChromaEffect(string path) - { - ChromaEffectsReader reader = new ChromaEffectsReader(); - EffectRegion[] regions = reader.ReadFirstStatic(path); - Array.ForEach(regions, x => x.Show(chroma)); - } - - private async void Setup() - { - chroma = await ColoreProvider.CreateNativeAsync(); - } - - private void Loop() - { - while (true) - { - Thread.Sleep(100); - } - chroma.UninitializeAsync(); - } - } +using Colore; +using Colore.Data; +using Colore.Effects.Keyboard; +using System; +using System.Threading; + +namespace ChromaEffectsImporter +{ + internal class ColoreOutput + { + private IChroma chroma; + + private string ChromaEffectPath; + + public ColoreOutput(string chromaEffectPath) + { + ChromaEffectPath = chromaEffectPath; + } + + public void Start() + { + Setup(); + LoadChromaEffect(ChromaEffectPath); + Thread.Sleep(1000); + Loop(); + } + + private void LoadChromaEffect(string path) + { + ChromaEffectsReader reader = new ChromaEffectsReader(); + EffectRegion[] regions = reader.ReadFirstStatic(path); + Array.ForEach(regions, x => x.Show(chroma)); + } + + private async void Setup() + { + chroma = await ColoreProvider.CreateNativeAsync(); + } + + private void Loop() + { + while (true) + { + Thread.Sleep(100); + } + chroma.UninitializeAsync(); + } + } } \ No newline at end of file