Ejemplo n.º 1
0
        public ConfigForm(IpsyncController controller)
        {
            _controller = controller;
            InitializeComponent();

            LoadConfiguration();
        }
Ejemplo n.º 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;
        }