Пример #1
0
        static void Main(string[] args)
        {
            var options = new CoreArgs();

            Console.WriteLine("This program is free software;" + Environment.NewLine + " you can redistribute it and / or modify it under the terms of the GNU General Public License as published bythe Free Software Foundation;" + Environment.NewLine + " either version 2 of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY;" + Environment.NewLine + " without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU General Public License for more details.");
            if (CommandLine.Parser.Default.ParseArguments(args, options))
            {
                force = options.forceRefresh;
            }
            _audio     = new AudioManager();
            _keyBinder = new KeyBinder();
            if (options.forceRefresh)
            {
                Console.WriteLine("Force Refreshing");

                _appFetcher = new AppFetcher();
                _appFetcher.GenerateFiles(true);
            }
            else
            {
                Console.WriteLine("fetching changes in apps");

                _appFetcher = new AppFetcher();
                _appFetcher.GenerateFiles(false);
            }
            _config = new Config();
            new DEBus();
            Console.ReadKey(true);
        }
 public KeyBinder()
 {
     _current           = this;
     HookManager.KeyUp += HookManager_KeyUp;
     Console.WriteLine("KeyBinder init done. now you can user control keys on your keyboard");
 }