public void Display(FileSystemNode nd)
        {
            fileNode = nd;
            FileDetailsControl.Display(nd);

            BitmapImage image = new BitmapImage();

            using (FileStream stream = File.OpenRead(nd.Path))
            {
                image.BeginInit();
                image.StreamSource = stream;
                image.CacheOption = BitmapCacheOption.OnLoad;
                image.EndInit();
            }

            ImageControl.Source = image;
        }
예제 #2
0
        private Tapestry.TapestryNode PathToFileSystemNode(string path)
        {
            string fileOrDirName = System.IO.Path.GetFileName(path);
            string frgUri = this.URI;

            if (!frgUri.EndsWith("/"))
            {
                frgUri += "/";
            }

            frgUri += fileOrDirName;

            Tapestry.TapestryNode f = new FileSystemNode(frgUri, true);

            return f;
        }
 public void Display(FileSystemNode nd)
 {
     fileNode = nd;
     FileDetailsControl.Display(fileNode);
 }
예제 #4
0
 public void Display(FileSystemNode nd)
 {
     fileNode = nd;
     MultiLineTextBox.Text = nd.ToMultiLineDetail();
     LoadTags();
 }