Beispiel #1
0
        public Program()
        {
            registryUtil = new RegistryUtil(Application.ExecutablePath.ToString());

            MenuItem startWithMenu = new MenuItem();
            startWithMenu.Text = "윈도 시작 시 같이 실행";
            startWithMenu.Checked = registryUtil.isRegisteredForStartProgram;
            startWithMenu.Click += OnToggleStartWith;
            trayMenu = new ContextMenu();
            trayMenu.MenuItems.Add(startWithMenu);
            trayMenu.MenuItems.Add("종료", OnExit);

            trayIcon = new NotifyIcon();
            trayIcon.Text = "편리한 한영";
            trayIcon.Icon = new Icon(SystemIcons.Application, 40, 40);
            trayIcon.ContextMenu = trayMenu;
            trayIcon.Visible = true;
        }
Beispiel #2
0
        public Program()
        {
            registryUtil = new RegistryUtil(Application.ExecutablePath.ToString());

            MenuItem startWithMenu = new MenuItem();

            startWithMenu.Text    = "윈도 시작 시 같이 실행";
            startWithMenu.Checked = registryUtil.isRegisteredForStartProgram;
            startWithMenu.Click  += OnToggleStartWith;
            trayMenu = new ContextMenu();
            trayMenu.MenuItems.Add(startWithMenu);
            trayMenu.MenuItems.Add("종료", OnExit);

            trayIcon             = new NotifyIcon();
            trayIcon.Text        = "편리한 한영";
            trayIcon.Icon        = new Icon(SystemIcons.Application, 40, 40);
            trayIcon.ContextMenu = trayMenu;
            trayIcon.Visible     = true;
        }