BetterExplorer.MainWindow.LinksFolderWarcher_Created C# (CSharp) 메소드

LinksFolderWarcher_Created() 개인적인 메소드

private LinksFolderWarcher_Created ( object sender, FileSystemEventArgs e ) : void
sender object
e FileSystemEventArgs
리턴 void
    void LinksFolderWarcher_Created(object sender, FileSystemEventArgs e) {
      Dispatcher.BeginInvoke(DispatcherPriority.Normal,
                      (Action)(() => {
                        if (Path.GetExtension(e.FullPath).ToLowerInvariant() == ".lnk") {
                          var so = new ShellItem(e.FullPath);
                          so.Thumbnail.FormatOption = ShellThumbnailFormatOption.IconOnly;
                          so.Thumbnail.CurrentSize = new WIN.Size(16, 16);
                          ImageSource icon = so.Thumbnail.BitmapSource;

                          btnFavorites.Items.Add(Utilities.Build_MenuItem(so.DisplayName, so, icon, onClick: mif_Click));
                        }
                      }));
    }
MainWindow