BetterExplorer.App.CreateInitialTab C# (CSharp) Метод

CreateInitialTab() приватный Метод

Creates initial tab
private CreateInitialTab ( MainWindow win, IListItemEx sho ) : void
win MainWindow The main window
sho IListItemEx The shell object used for tab creation
Результат void
    private void CreateInitialTab(MainWindow win, IListItemEx sho) {
      var bmpSource = sho.ThumbnailSource(16, ShellThumbnailFormatOption.IconOnly, ShellThumbnailRetrievalOption.Default);
      var newt = new Wpf.Controls.TabItem(sho) {
        Header = sho.DisplayName,
        Icon = bmpSource
      };
      newt.PreviewMouseMove += this.Newt_PreviewMouseMove;
      newt.ToolTip = sho.ParsingName.Replace("%20", " ").Replace("%3A", ":").Replace("%5C", @"\");
      win.tcMain.CloneTabItem(newt);
    }