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; }
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); }
public void Display(FileSystemNode nd) { fileNode = nd; MultiLineTextBox.Text = nd.ToMultiLineDetail(); LoadTags(); }