Ejemplo n.º 1
0
 //detach this window from all XDocuments it observes
 public static void DetachFromAll(EntityWindow e, List <XDocumentInformation> attachments)
 {
     foreach (var x in attachments)
     {
         x.Detach(e);
     }
 }
 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));
     }
 }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
 private void Add_Character(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, new AddCharacter());
 }
Ejemplo n.º 5
0
 private void Participant_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new ViewParticipants()));
 }
Ejemplo n.º 6
0
 private void Event_Relationship_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new ViewEventRelationships()));
 }
Ejemplo n.º 7
0
 private void New_Location_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new AddLocation()));
 }
Ejemplo n.º 8
0
 private void New_Character_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new AddCharacter()));
 }
Ejemplo n.º 9
0
 private void New_Note_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new AddGeneralNote()));
 }
Ejemplo n.º 10
0
 private void NewTimeline(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, (new TimelinePromptWindow()));
 }
Ejemplo n.º 11
0
 public void Detach(EntityWindow i)
 {
     Observers.Remove(i);
 }
Ejemplo n.º 12
0
 public void Attach(EntityWindow i)
 {
     Observers.Add(i);
 }
Ejemplo n.º 13
0
 private void TimelineButton_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, new TimelinePromptWindow());
 }
Ejemplo n.º 14
0
 public void AdjustOrdering_Click(object sender, RoutedEventArgs e)
 {
     EntityWindow.InitializeModalWindow(this, new EventRelationshipPrompt());
 }