Пример #1
0
        private void MainClientForm_Load(object sender, EventArgs e)
        {
            TraceOps.LoadLog();
            Services.PrepareGetService();
            SystemOps.SetAutoStart();

            _configServer          = new ConfigServer();
            _configServer.Changed += ConfigServerOnChanged;

            _keyboard = new KeyboardControl();
            _keyboard.RegisterGlobalHotKey(Constants.NOMOD, Keys.Left, this);
            _keyboard.RegisterGlobalHotKey(Constants.NOMOD, Keys.Right, this);
            _keyboard.KeyPressed += HandleHotkey;


            DllLoader.InitializeClientPlugIns(_plugins);
        }
Пример #2
0
        private void MainClientForm_Load(object sender, EventArgs e)
        {
            TraceOps.LoadLog();
            Services.PrepareGetService();
            SystemOps.SetAutoStart();

            _configServer = new ConfigServer();
            _configServer.Changed += ConfigServerOnChanged;

            _keyboard = new KeyboardControl();
            _keyboard.RegisterGlobalHotKey(Constants.NOMOD, Keys.Left, this);
            _keyboard.RegisterGlobalHotKey(Constants.NOMOD, Keys.Right, this);
            _keyboard.KeyPressed += HandleHotkey;

            DllLoader.InitializeClientPlugIns(_plugins);
        }