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));
     }
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 private void Add_Character(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, new AddCharacter());
 }
Exemple #4
0
 private void Participant_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new ViewParticipants()));
 }
Exemple #5
0
 private void Event_Relationship_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new ViewEventRelationships()));
 }
Exemple #6
0
 private void New_Location_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new AddLocation()));
 }
Exemple #7
0
 private void New_Character_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new AddCharacter()));
 }
Exemple #8
0
 private void New_Note_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new AddGeneralNote()));
 }
Exemple #9
0
 private void NewTimeline(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new TimelinePromptWindow()));
 }
Exemple #10
0
 private void TimelineButton_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, new TimelinePromptWindow());
 }
Exemple #11
0
 public void AdjustOrdering_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, new EventRelationshipPrompt());
 }