private void btnAddLocation_Click(object sender, EventArgs e) { AddCharacterLocationForm NewAddCharacterLocationForm = new AddCharacterLocationForm(); if (NewAddCharacterLocationForm.ShowDialog() == DialogResult.OK) { string PriorityName = NewAddCharacterLocationForm.txtX.Value + ":" + NewAddCharacterLocationForm.txtY.Value; SpeakerPriority NewSpeakerPriority = new SpeakerPriority(SpeakerPriority.PriorityTypes.Location, PriorityName); lstSpeakerPriority.Items.Add(NewSpeakerPriority); ListSpeakerPriority.Add(NewSpeakerPriority); } }
private void btnAddID_Click(object sender, EventArgs e) { AddCharacterIDForm NewAddCharacterIDForm = new AddCharacterIDForm(); if (NewAddCharacterIDForm.ShowDialog() == DialogResult.OK) { string PriorityName = NewAddCharacterIDForm.txtID.Value.ToString(); SpeakerPriority NewSpeakerPriority = new SpeakerPriority(SpeakerPriority.PriorityTypes.ID, PriorityName); lstSpeakerPriority.Items.Add(NewSpeakerPriority); ListSpeakerPriority.Add(NewSpeakerPriority); } }
private void btnAddNewCharacter_Click(object sender, EventArgs e) { List <string> Items = BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathCharacters, "Chose a new character."); if (Items == null || Items.Count == 0) { return; } string FullName = Items[0].Substring(0, Items[0].Length - 4).Substring(19); SpeakerPriority NewSpeakerPriority = new SpeakerPriority(SpeakerPriority.PriorityTypes.Character, FullName); lstSpeakerPriority.Items.Add(NewSpeakerPriority); ListSpeakerPriority.Add(NewSpeakerPriority); }