private void toSpeakerListToolStripMenuItem_Click(object sender, EventArgs e) { if (Pcc == null || Dialog == null) { return; } string nameResult = PromptDialog.Prompt(null, "Please enter new name", "ME1Explorer", "", true); if (nameResult == "") { return; } string numberResult = PromptDialog.Prompt(null, "Please enter new name index", "ME1Explorer", "", true); if (numberResult == "") { return; } if (int.TryParse(numberResult, out int i) && i >= 0) { ME1BioConversation.SpeakerListStruct sp = new ME1BioConversation.SpeakerListStruct(); sp.SpeakerTag = new NameReference(nameResult, i); Dialog.SpeakerList.Add(sp); Dialog.Save(); } }
private void listBox2_DoubleClick(object sender, EventArgs e) { int n; if (Pcc == null || Dialog == null || (n = listBox2.SelectedIndex) == -1) { return; } string nameResult = PromptDialog.Prompt(null, "Please enter new name", "ME1Explorer", Dialog.SpeakerList[n].SpeakerTag.Name, true); if (nameResult == "") { return; } string numberResult = PromptDialog.Prompt(null, "Please enter new name index", "ME1Explorer", Dialog.SpeakerList[n].SpeakerTag.Number.ToString(), true); if (numberResult == "") { return; } if (int.TryParse(numberResult, out int i) && i >= 0) { ME1BioConversation.SpeakerListStruct sp = new ME1BioConversation.SpeakerListStruct(); sp.SpeakerTag = new NameReference(nameResult, i); Dialog.SpeakerList[n] = sp; Dialog.Save(); } }
private void listBox2_DoubleClick(object sender, EventArgs e) { int n; if (pcc == null || Dialog == null || (n = listBox2.SelectedIndex) == -1) { return; } string result = Microsoft.VisualBasic.Interaction.InputBox("Please enter new name entry", "ME1Explorer", Dialog.SpeakerList[n].SpeakerTag.ToString(), 0, 0); if (result == "") { return; } int i = 0; if (int.TryParse(result, out i) && pcc.isName(i)) { ME1BioConversation.SpeakerListStruct sp = new ME1BioConversation.SpeakerListStruct(); sp.SpeakerTag = i; sp.Text = pcc.getNameEntry(i); Dialog.SpeakerList[n] = sp; Dialog.Save(); } }
private void toSpeakerListToolStripMenuItem_Click(object sender, EventArgs e) { if (pcc == null || Dialog == null) { return; } string result = Microsoft.VisualBasic.Interaction.InputBox("Please enter new value", "ME1Explorer", "", 0, 0); if (result == "") { return; } int i = 0; if (int.TryParse(result, out i) && pcc.isName(i)) { ME1BioConversation.SpeakerListStruct sp = new ME1BioConversation.SpeakerListStruct(); sp.SpeakerTag = i; sp.Text = pcc.getNameEntry(i); Dialog.SpeakerList.Add(sp); Dialog.Save(); } }