// public static ILittleBigMouseCallback Callback; private void OnStartup(object sender, EventArgs exitEventArgs) { _notify = new Notify(); _engine = new MouseEngine(_monitorsService); _engine.ConfigLoaded += _engine_ConfigLoaded; _engine.StartServer(this); if (_notify != null) { _notify.Click += OnNotifyClick; } UpdateConfig(); //_notify.AddMenu("Brightness", Brightness); _notify.AddMenu(-1, "Check for update", CheckUpdate); _notify.AddMenu(-1, "Open", Open); _notify.AddMenu(-1, "Start", Start); _notify.AddMenu(-1, "Stop", Stop); _notify.AddMenu(-1, "Exit", Quit); CommandLine(_args); //Start(); }
protected override void OnStart(string[] args) { base.OnStart(args); _engine = new MouseEngine(); _engine.Start(); }