private void selectedFolderToolStripMenuItem_Click(object sender, EventArgs e)
{
// KFreon: Get selected folder and contained texes
myTreeNode selectedNode = MainTreeView.SelectedNode as myTreeNode;
var selectedNodeTexCount = selectedNode?.TexInds?.Count ?? 0;
if (selectedNodeTexCount <= 0)
return;
List<TreeTexInfo> temptexes = new List<TreeTexInfo>();
GetTexesRecursive(selectedNode, temptexes);
if (MessageBox.Show("This will delete and recreate all thumbnails for the selected folder. This will take some time. Are you sure?", "Consensus?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.Yes)
{
int texCount = temptexes.Count;
ProgBarUpdater.ChangeProgressBar(0, texCount);
OutputBoxPrintLn("Regenerating ME" + WhichGame + " thumbnails...");
StatusUpdater.UpdateText("Regenerating thumbnails... 0 of " + texCount);
backbone.AddToBackBone(b =>
{
return RegenerateThumbs(temptexes);
});
}
}