Ejemplo n.º 1
0
 public Directory(DriveInfo[] drives)
 {
     DirectoryInfo = drives.Select(dr => new DirectoryItem(dr.Name, dr.Name, "Drive", string.Empty));
     Root = string.Empty;
 }
Ejemplo 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)));
 }
Ejemplo n.º 3
0
 private ToolStripItem[] CreateToolStripItems(DriveInfo[] drives)
 {
     return drives.Select(TryCreateMenuItem).Where(item => item != null).ToArray();
 }