public MainWindow() { InitializeComponent(); Enabled = false; letterTable = new LetterTable(); keyTranslator = new KeyTranslator(letterTable); StatusLabel.Content = "Language: \n" + letterTable.Filename; }
public KeyTranslator(LetterTable letterTable) { buffer = new FixedLengthQueue <string>(3); buffer.Clear(""); this.letterTable = letterTable; //keyPressListener = new KeyStateListener(); keyPressListener = new LowLevelKeyboardHook(); keyPressListener.Listen = false; keyPressListener.OnKeyPressed += OnKeyPressed; }