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