private void _networkAndProxyOptionsButton_Click(object sender, EventArgs e) { using (NetworkAndProxyOptionsForm networkAndProxyOptionsForm = new NetworkAndProxyOptionsForm()) { networkAndProxyOptionsForm.Options = _networkAndProxyOptions; if (networkAndProxyOptionsForm.ShowDialog() == DialogResult.OK) { _networkAndProxyOptions = networkAndProxyOptionsForm.Options; } } }
public void SetOptions(Contracts.Options value) { _emailAddressTextBox.Text = value.EmailAddress; _calenderUrlTextBox.Text = value.CalenderUrl; _userNameTextBox.Text = value.UserName; _ignoreAccountPasswordCheckBoxCheckedChanged = true; _useAccountPasswordCheckBox.Checked = value.UseAccountPassword; _ignoreAccountPasswordCheckBoxCheckedChanged = false; _passwordTextBox.Text = SecureStringUtility.ToUnsecureString(value.Password); _networkAndProxyOptions = new NetworkAndProxyOptions(value.CloseAfterEachRequest, value.PreemptiveAuthentication, value.ForceBasicAuthentication, value.ProxyOptions ?? new ProxyOptions()); UpdatePasswordControlEnabled(); }
public void SetOptions(Contracts.Options value) { _emailAddressTextBox.Text = value.EmailAddress; if (!string.IsNullOrEmpty(value.CalenderUrl)) { _calenderUrlTextBox.Text = value.CalenderUrl; } else { _calenderUrlTextBox.Text = OptionTasks.GoogleDavBaseUrl; } _serverAdapterType = value.ServerAdapterType; _networkAndProxyOptions = new NetworkAndProxyOptions(value.CloseAfterEachRequest, value.PreemptiveAuthentication, value.ForceBasicAuthentication, value.ProxyOptions ?? new ProxyOptions()); }