private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (listBox1.SelectedIndex == listBox1.Items.Count - 1 ||
listBox1.SelectedIndex == -1)
{
tbPluginName.Text = string.Empty;
tbPluginDirectory.Text = Prefs.pathPluginsFolder;
}
else
{
tbPluginName.Text = pluginInfo.Names[listBox1.SelectedIndex];
tbPluginDirectory.Text = pluginInfo.Paths[listBox1.SelectedIndex];
}
}