public Core() { this.hotKeyManager = new NHotKeyManager(); this.translator = new Translator(); this.notifyIconContainer = new JustTranslator.Views.NotifyIconContainer(); //this.StartTranslationLoop(); this.hotKeyManager.AddHotKey(new HotKey { Key = Keys.T, KeyModifiers = KeyModifiers.Control | KeyModifiers.Windows }, new EventHandler(this.OnTranslate)); this.hotKeyManager.AddHotKey(new HotKey { Key = Keys.T, KeyModifiers = NHotKey.KeyModifiers.Windows | NHotKey.KeyModifiers.Control | NHotKey.KeyModifiers.Shift },new EventHandler(this.OnShowTranslationWindow)); }
public MainAbout() { InitializeComponent(); this.translator = new Translator(); this.Hide(); }