Ejemplo n.º 1
0
 public Password(ObservableCollection <TreeviewItemsBase> _parent)
 {
     rename = new addItemCommand(_rename);
     remove = new addItemCommand(_remove);
     parent = _parent;
     name   = "New Password";
 }
Ejemplo n.º 2
0
 public TreeViewModel()
 {
     IAddDirectory = new addItemCommand(AddDirectory);
     IAddImage     = new addItemCommand(AddImage);
     IAddPassword  = new addItemCommand(AddPassword);
     //firstGeneration.CollectionChanged += ContentCollectionChanged;
 }
Ejemplo n.º 3
0
Archivo: Image.cs Proyecto: AstRyou/All
 public Image(ObservableCollection <TreeviewItemsBase> _parent, BitmapImage bmpp)
 {
     rename = new addItemCommand(_rename);
     remove = new addItemCommand(_remove);
     parent = _parent;
     bmp    = bmpp;
     name   = "New Image";
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 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;
 }