|
using System;
using System.Collections.Generic;
using System.Text;
using PasswordSafe.Classes;
namespace PasswordSafe.Classes
{
public class PWNameValue:NotifyItemBase
{
public PWNameValue(string title, string name, PasswordData data)
{
this.Name = name;
this.data = data;
this.Title = title;
}
private PasswordData data;
public string Title { get; set; }
public string Name { get; set; }
public string Value
{
get { return data.Values[Name]; }
set
{
if (value != data.Values[Name])
{
if (string.IsNullOrEmpty(value) && string.IsNullOrEmpty(data.Values[Name])) return;
data.Values[Name] = value;
Modify();
}
}
}
}
}
|
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.