Exemplo n.º 1
0
 public Directory(DriveInfo[] drives)
 {
     DirectoryInfo = drives.Select(dr => new DirectoryItem(dr.Name, dr.Name, "Drive", string.Empty));
     Root = string.Empty;
 }
Exemplo n.º 2
0
 public override void EndGetDrives(DriveInfo[] result)
 {
     this.log.DebugFormat(
         CultureInfo.InvariantCulture, "Got all drives {0}.", string.Join(";", result.Select(info => info.Name)));
 }
Exemplo n.º 3
0
 private ToolStripItem[] CreateToolStripItems(DriveInfo[] drives)
 {
     return drives.Select(TryCreateMenuItem).Where(item => item != null).ToArray();
 }