private void AddRelationship_Button_Click(object sender, RoutedEventArgs e) { if (!string.IsNullOrWhiteSpace(focus_character_combo.Text)) { EntityWindow.InitializeModalWindow(this, new CharacterRelationshipPrompt(focus_character_combo.Text)); } }
public void EditClick(object sender, RoutedEventArgs e) { INewEntity newWindow; if (EntityType.Name.Equals(XMLParser.CharacterXDocument.Name)) { newWindow = new AddCharacter(); } else if (EntityType.Name.Equals(XMLParser.EventXDocument.Name)) { newWindow = new AddEvent(); } else if (EntityType.Name.Equals(XMLParser.LocationXDocument.Name)) { newWindow = new AddLocation(); } else { newWindow = new AddGeneralNote(); } newWindow.FillWith(EntityName); EntityWindow.InitializeModalWindow(FrontPage.FrontPageReference, (EntityWindow)newWindow); }
private void Add_Character(object sender, RoutedEventArgs e) { EntityWindow.InitializeModalWindow(this, new AddCharacter()); }
private void Participant_Click(object sender, RoutedEventArgs e) { EntityWindow.InitializeModalWindow(this, (new ViewParticipants())); }
private void Event_Relationship_Click(object sender, RoutedEventArgs e) { EntityWindow.InitializeModalWindow(this, (new ViewEventRelationships())); }
private void New_Location_Click(object sender, RoutedEventArgs e) { EntityWindow.InitializeModalWindow(this, (new AddLocation())); }
private void New_Character_Click(object sender, RoutedEventArgs e) { EntityWindow.InitializeModalWindow(this, (new AddCharacter())); }
private void New_Note_Click(object sender, RoutedEventArgs e) { EntityWindow.InitializeModalWindow(this, (new AddGeneralNote())); }
private void NewTimeline(object sender, RoutedEventArgs e) { EntityWindow.InitializeModalWindow(this, (new TimelinePromptWindow())); }
private void TimelineButton_Click(object sender, RoutedEventArgs e) { EntityWindow.InitializeModalWindow(this, new TimelinePromptWindow()); }
public void AdjustOrdering_Click(object sender, RoutedEventArgs e) { EntityWindow.InitializeModalWindow(this, new EventRelationshipPrompt()); }