private static void renameTable(object sender, System.EventArgs e) { MenuItem senderItem = (MenuItem)sender; string tableName = (string)senderItem.Tag; string[] input = Prompt.ShowDialog("Enter New Table Name:", "Rename \"" + tableName + "\" Table", true, false, null); if (input[0] == "T") { DatabaseFunct.ChangeTableName(tableName, input[1]); } }