예제 #1
0
파일: ConfigForm.cs 프로젝트: NeilQ/ip-sync
        public ConfigForm(IpsyncController controller)
        {
            _controller = controller;
            InitializeComponent();

            LoadConfiguration();
        }
예제 #2
0
        public MenuViewController(IpsyncController controller)
        {
            _controller = controller;
            LoadMenu();
            var config = Configuration.Load();

            _notifyIcon = new NotifyIcon
            {
                Visible = true,
                ContextMenu = _contenxMenu
            };
            UpdateTrayIcon(config);
            _notifyIcon.MouseDoubleClick += NotifyIcon_MouseDoubleClick;

            LoadConfiguration(config);
            UpdateTrayText(config);

            controller.ConfigChanged += Controller_ConfigChanged;
            controller.IpChanged += Controller_IpChanged;
        }