예제 #1
0
        public void Update(string guid, string username, string password)
        {
            var credentials = GetCredentialsForProfile(guid);

            if (credentials == null)
            {
                return;
            }

            credentials = new CredentialsObject(username, password);

            CredntialsObjects[guid] = credentials;
            Save();
        }
예제 #2
0
        public void Add(string guid, string username, string password)
        {
            var credentials = GetCredentialsForProfile(guid);

            if (credentials != null)
            {
                credentials             = new CredentialsObject(username, password);
                CredntialsObjects[guid] = credentials;
            }
            else
            {
                CredntialsObjects.Add(guid, new CredentialsObject(username, password));
            }

            Save();
        }