コード例 #1
0
 public static T CreateClient <T, I>(string endpointConfigurationName, string remoteAddress)
     where T : ClientBase <I>, I
     where I : class
 {
     return(CreateClient <T, I>(endpointConfigurationName, remoteAddress, Settings.Default.UserName, CryptoService.DecryptString(Settings.Default.Password)));
 }
コード例 #2
0
 public static ChannelFactory <I> CreateChannelFactory <I>(string endpointConfigurationName, string remoteAddress)
     where I : class
 {
     return(CreateChannelFactory <I>(endpointConfigurationName, remoteAddress, Settings.Default.UserName, CryptoService.DecryptString(Settings.Default.Password)));
 }
コード例 #3
0
 private void PasswordDialog_Load(object sender, EventArgs e)
 {
     usernameTextBox.Text         = Settings.Default.UserName;
     passwordTextBox.Text         = CryptoService.DecryptString(Settings.Default.Password);
     savePasswordCheckBox.Checked = Settings.Default.SavePassword;
 }