Пример #1
0
        public ApplicationContext()
        {
            mMouseService = MouseService.The();

            mTrayIcon = new NotifyIcon()
            {
                Icon        = Resources.MouseIcon,
                ContextMenu = new ContextMenu(new MenuItem[] {
                    new MenuItem("Disable", Disable),
                    new MenuItem("Settings", Settings),
                    new MenuItem("Exit", Exit)
                }),
                Visible = true
            };

            mTrayIcon.DoubleClick += (o, e) => Settings(o, e);
        }
Пример #2
0
 public static MouseService The()
 {
     return(mInstance ?? (mInstance = new MouseService()));
 }