private void btnSet_Click(object sender, EventArgs e) {
var itemIndex = _ShellView.GetFirstSelectedItemIndex();
this._ShellView.CurrentRefreshedItemIndex = itemIndex;
if (this._IsLibrary) {
//this._ShellView.IsLibraryInModify = true;
var lib = _ShellView.GetFirstSelectedItem() != null ?
BExplorer.Shell.ShellLibrary.Load(Path.GetFileNameWithoutExtension(_ShellView.GetFirstSelectedItem().ParsingName), false) :
BExplorer.Shell.ShellLibrary.Load(Path.GetFileNameWithoutExtension(_ShellView.CurrentFolder.ParsingName), false);
lib.IconResourceId = new BExplorer.Shell.Interop.IconReference(tbLibrary.Text, (int)lvIcons.SelectedItems[0].Tag);
lib.Close();
this._ShellView.Items[itemIndex].IsIconLoaded = false;
this._ShellView.RefreshItem(this._ShellView.GetFirstSelectedItemIndex(), true);
} else {
this._ShellView.SetFolderIcon(this._ShellView.GetFirstSelectedItem().ParsingName, tbLibrary.Text, (int)lvIcons.SelectedItems[0].Tag);
}
this.Close();
}