Exemplo n.º 1
0
 private void OnNetworkAvailabilityChanged(object sender, NetworkAvailabilityEventArgs args)
 {
     if (args.IsAvailable)
     {
         AutoProxyHelper.CheckAndSetProxy();
     }
 }
Exemplo n.º 2
0
        public NotifyIcon()
        {
            InitializeComponent();

            ApplyChangingLanguage();

            setAutorunMenuItem.Click   += delegate {  AutoProxyHelper.RegisterAutorun(); };
            unsetAutorunMenuItem.Click += delegate { AutoProxyHelper.UnregisterAutorun(); };
            reloadConfigMenuItem.Click += delegate {
                AutoProxyConfig.Current.LoadConfig();
                AutoProxyHelper.CheckAndSetProxy();
                ApplyChangingLanguage();
            };
            exitMenuItem.Click += delegate { Application.Current.Shutdown(); };
        }