|
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Specialized;
namespace PasswordSafe.Classes
{
[Serializable]
public class PasswordData:NotifyItemBase
{
public string Name { get { return Values["name"]; } }
public string User { get { return values["user"]; } }
public string Password { get { return values["password"]; } }
public string EMail { get { return values["email"]; } }
public string Url { get { return values["url"]; } }
public string Info { get { return values["info"]; } }
private PasswordCategory category;
public PasswordCategory Category
{
get { return category; }
set
{
if (category != value)
{
if (category != null) category.Remove(this);
category = value;
if (category != null) category.Add(this);
}
}
}
private NameValueCollection values = new NameValueCollection();
public NameValueCollection Values { get { return values; } }
internal string GetUser()
{
return User ?? string.Empty;
}
internal string GetPassword()
{
return Password ?? string.Empty;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.