Example #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)));
 }
Example #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)));
 }
 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;
 }