Esempio n. 1
0
 public DirectoriesViewModel()
 {
     this.ActivePanel  = ActivePanel.Left;
     this.LeftEntries  = DirectoryStructure.GetAllLogicalDrives();
     this.RightEntries = DirectoryStructure.GetAllLogicalDrives();
     this.RightPath    = "..";
     this.LeftPath     = "..";
 }
Esempio n. 2
0
        void RightlistViewItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            ListViewItem   item  = e.Source as ListViewItem;
            DirectoryEntry entry = item.DataContext as DirectoryEntry;

            if (entry.Type == EntryType.Dir || entry.Type == EntryType.Drive)
            {
                directories.RightEntries.Clear();
                directories.RightPath    = entry.Fullpath;
                directories.RightEntries = DirectoryStructure.GetDirectoryContents(entry.Fullpath);
            }
        }