private void dependenciesListView_SelectedIndexChanged(object sender, EventArgs e)
{
ListBox listBox = sender as ListBox;
if (listBox.SelectedItem == null)
{
return;
}
string selectedItem = (string)listBox.SelectedItem;
if (selectedItem.Contains(".png"))
{
// set the image
string linkedFilePath = MainForm.kModsDirectoryPath + selectedItem;
if (System.IO.File.Exists(linkedFilePath))
{
iconView.ImageLocation = linkedFilePath;
}
}
}