in sources/Google.Solutions.IapDesktop.Application/Windows/Options/NetworkOptionsSheet.cs [41:160]
public void Bind(PropertiesSheetViewModelBase viewModelBase, IBindingContext bindingContext)
{
this.viewModel.Value = (NetworkOptionsViewModel)viewModelBase;
this.proxyBox.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsProxyEditable,
bindingContext);
this.useSystemRadioButton.BindProperty(
c => c.Checked,
this.viewModel.Value,
m => m.IsSystemProxyServerEnabled,
bindingContext);
this.openProxyControlPanelAppletButton.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsSystemProxyServerEnabled,
bindingContext);
this.useCustomRadioButton.BindProperty(
c => c.Checked,
this.viewModel.Value,
m => m.IsCustomProxyServerEnabled,
bindingContext);
this.addressLabel.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsCustomProxyServerEnabled,
bindingContext);
this.proxyServerTextBox.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsCustomProxyServerEnabled,
bindingContext);
this.proxyServerTextBox.BindProperty(
c => c.Text,
this.viewModel.Value,
m => m.ProxyServer,
bindingContext);
this.proxyPortTextBox.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsCustomProxyServerEnabled,
bindingContext);
this.proxyPortTextBox.BindProperty(
c => c.Text,
this.viewModel.Value,
m => m.ProxyPort,
bindingContext);
this.usePacRadioButton.BindProperty(
c => c.Checked,
this.viewModel.Value,
m => m.IsProxyAutoConfigurationEnabled,
bindingContext);
this.pacAddressLabel.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsProxyAutoConfigurationEnabled,
bindingContext);
this.proxyPacTextBox.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsProxyAutoConfigurationEnabled,
bindingContext);
this.proxyPacTextBox.BindProperty(
c => c.Text,
this.viewModel.Value,
m => m.ProxyAutoconfigurationAddress,
bindingContext);
//
// Proxy auth.
//
this.proxyAuthCheckBox.BindProperty(
c => c.Checked,
this.viewModel.Value,
m => m.IsProxyAuthenticationEnabled,
bindingContext);
this.proxyAuthCheckBox.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsCustomProxyServerOrProxyAutoConfigurationEnabled,
bindingContext);
this.proxyAuthUsernameTextBox.BindProperty(
c => c.Text,
this.viewModel.Value,
m => m.ProxyUsername,
bindingContext);
this.proxyAuthUsernameTextBox.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsProxyAuthenticationEnabled,
bindingContext);
this.proxyAuthUsernameLabel.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsProxyAuthenticationEnabled,
bindingContext);
this.proxyAuthPasswordTextBox.BindProperty(
c => c.Text,
this.viewModel.Value,
m => m.ProxyPassword,
bindingContext);
this.proxyAuthPasswordTextBox.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsProxyAuthenticationEnabled,
bindingContext);
this.proxyAuthPasswordLabel.BindProperty(
c => c.Enabled,
this.viewModel.Value,
m => m.IsProxyAuthenticationEnabled,
bindingContext);
}