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