示例#1
0
文件: EntryPoint.cs 项目: seveian/RNS
        static void Main()
        {
            using (var hook = new KeyboardHook { SelectedKey = Key.F1 })
            {
                var app = new App(hook);
                app.InitializeComponent();
                RNSMain.ConsoleCommand.Register(new AutoPluginCommand());
                if (Properties.Settings.Default.AutoPlugin == null)
                    Properties.Settings.Default.AutoPlugin = new System.Collections.Specialized.StringCollection();
                app.Run();

            }
        }
示例#2
0
文件: App.xaml.cs 项目: seveian/RNS
 public App(KeyboardHook keyboardHook)
 {
     if (keyboardHook == null) throw new ArgumentNullException("keyboardHook");
     keyboardHook.KeyCombinationPressed += KeyCombinationPressed;
 }