예제 #1
0
 public void InitFromCredentials(ILogonCredentials credentials)
 {
     if (ProfileComboBox != null)
     {
         _usingCustomCredentials       = LogonCredentials.IsCustomProfile(credentials.ProfileName);
         ProfileComboBox.SelectedIndex = ProfileComboBox.FindItem(LogonCredentials.ConstructQualifiedName(credentials));
     }
     UserNameTextBox.Text = credentials.UserName;
     InitPassword(credentials.Password);
     DomainTextBox.Text = credentials.Domain;
 }
예제 #2
0
 private void CheckCredentials(RdcTreeNode node, LogonCredentials credentials, string name, Dictionary <string, List <string> > missingProfiles)
 {
     if (credentials != null && credentials.InheritSettingsType.Mode != 0 && !node.ResolveCredentials(credentials))
     {
         string key = LogonCredentials.ConstructQualifiedName(credentials);
         if (!missingProfiles.TryGetValue(key, out List <string> value))
         {
             List <string> list2 = missingProfiles[key] = new List <string>();
             value = list2;
         }
         value.Add($"{node.FullPath}.{name}");
     }
 }