private void editToolStripMenuItem1_Click(object sender, EventArgs e)
{
if (CurrentView == View.Names && listBox1.SelectedIndex != -1)
{
int idx = listBox1.SelectedIndex;
string result = Microsoft.VisualBasic.Interaction.InputBox("", "Rename", pcc.getNameEntry(idx));
if (result != "")
{
pcc.replaceName(idx, result);
}
}
}