public Password(ObservableCollection <TreeviewItemsBase> _parent) { rename = new addItemCommand(_rename); remove = new addItemCommand(_remove); parent = _parent; name = "New Password"; }
public TreeViewModel() { IAddDirectory = new addItemCommand(AddDirectory); IAddImage = new addItemCommand(AddImage); IAddPassword = new addItemCommand(AddPassword); //firstGeneration.CollectionChanged += ContentCollectionChanged; }
public Image(ObservableCollection <TreeviewItemsBase> _parent, BitmapImage bmpp) { rename = new addItemCommand(_rename); remove = new addItemCommand(_remove); parent = _parent; bmp = bmpp; name = "New Image"; }
public Directory(SerializationInfo info, StreamingContext context) { this.name = (string)info.GetValue("name", typeof(string)); foreach (var item in (ObservableCollection <TreeviewItemsBase>)info.GetValue("Directories", typeof(ObservableCollection <TreeviewItemsBase>))) { Directories.Add(item); } IaddSubDir = new addItemCommand(addSubDir); }
public Directory(ObservableCollection <TreeviewItemsBase> _parent) { parent = _parent; name = "New Directory"; IaddSubDir = new addItemCommand(addSubDir); IAddImage = new addItemCommand(AddImage); IAddPassword = new addItemCommand(AddPassword); remove = new addItemCommand(_remove); rename = new addItemCommand(_rename); }
public TreeViewModel(SerializationInfo info, StreamingContext context) { foreach (var item in (ObservableCollection <TreeviewItemsBase>)info.GetValue("firstGeneration", typeof(ObservableCollection <TreeviewItemsBase>))) { firstGeneration.Add(item); } IAddDirectory = new addItemCommand(AddDirectory); IAddImage = new addItemCommand(AddImage); IAddPassword = new addItemCommand(AddPassword); //firstGeneration.CollectionChanged += ContentCollectionChanged; }