/// <summary>
        /// To edit the proxy settings.
        /// </summary>
        public static void EditProxySettigs()
        {
            var wnd = new ProxyEditorWindow
            {
                ProxySettings = ProxySettings.Clone()
            };

            if (!wnd.ShowModal())
            {
                return;
            }

            ProxySettings.Load(wnd.ProxySettings.Save());
            ProxySettings.ApplyProxySettings();

            if (!ProxyConfigurationFile.IsEmpty())
            {
                new XmlSerializer <SettingsStorage>().Serialize(ProxySettings.Save(), ProxyConfigurationFile);
            }
        }
		/// <summary>
		/// To edit the proxy settings.
		/// </summary>
		public static void EditProxySettigs()
		{
			var wnd = new ProxyEditorWindow
			{
				ProxySettings = ProxySettings.Clone()
			};

			if (!wnd.ShowModal())
				return;

			ProxySettings.Load(wnd.ProxySettings.Save());
			ProxySettings.ApplyProxySettings();

			if (!ProxyConfigurationFile.IsEmpty())
				new XmlSerializer<SettingsStorage>().Serialize(ProxySettings.Save(), ProxyConfigurationFile);
		}
Beispiel #3
0
		private void ProxySettingsClick(object sender, RoutedEventArgs e)
		{
			var wnd = new ProxyEditorWindow();

			if (wnd.ShowModal(this))
				wnd.ProxySettings.ApplyProxySettings();
		}