You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.0 KiB

using Calculator;
using System;
using System.IO;
using System.Threading;
namespace ChromaController
{
internal class Program
{
private static void Main(string[] args)
{
ColoreOutput coloreOutput = new ColoreOutput(ChromaFX());
Thread coloreThread = new Thread(coloreOutput.Start);
coloreThread.Start();
KeyConverter keyConverter = new KeyConverter();
Calc calculator = new Calc();
MonitorManager monitorManager = new MonitorManager(coloreOutput, keyConverter, calculator);
coloreThread.Join();
}
private static string ChromaFX()
{
string path = Environment.ExpandEnvironmentVariables(@"%APPDATA%\KeyboardCalculator\");
string filename = "ChromaEffects.xml";
if (!File.Exists(path + filename))
throw new ApplicationException("No ChromaEffect.xml found in %APPDATA%\\KeyboardCalculator\\");
return path + filename;
}
}
}