BetterExplorer.MainWindow.miJunctionpoint_Click C# (CSharp) Méthode

miJunctionpoint_Click() private méthode

private miJunctionpoint_Click ( object sender, RoutedEventArgs e ) : void
sender object
e RoutedEventArgs
Résultat void
    private void miJunctionpoint_Click(object sender, RoutedEventArgs e) {
      string pathForDrop = _ShellListView.CurrentFolder.ParsingName.Replace(@"\\", @"\");
      var files = new string[0];
      if (Clipboards.ContainsData("Shell IDList Array"))
        files = Clipboards.GetDataObject().ToShellItemArray().ToArray().Select(s => new ShellItem(s).ParsingName).ToArray();
      else
        files = Clipboards.GetFileDropList().OfType<string>().ToArray();

      foreach (string item in files) {
        var o = new ShellItem(item);
        JunctionPointUtils.JunctionPoint.Create($@"{pathForDrop}\{o.GetDisplayName(SIGDN.NORMALDISPLAY)}", o.ParsingName, true);
        AddToLog($@"Created Junction Point at {pathForDrop}\{o.GetDisplayName(SIGDN.NORMALDISPLAY)} linked to {o.ParsingName}");
      }
    }
MainWindow