Ejemplo n.º 1
0
        private void Initialize_Locations()
        {
            //Get all location names
            location_combo_box.Items.Clear();

            XMLParser.FillComboboxWithNames(XMLParser.LocationXDocument.Handle, ref location_combo_box);
        }
        public ViewCharacterRelationships() : base()
        {
            InitializeComponent();
            XMLParser.FillComboboxWithNames(XMLParser.CharacterXDocument.Handle, ref focus_character_combo);

            AttachToXDocument(ref XMLParser.CharacterXDocument);
        }
Ejemplo n.º 3
0
 private void focus_character_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (!string.IsNullOrWhiteSpace(focus_character_combo.Text) && focus_character_combo.SelectedItem != null)
     {
         FocusCharacter = focus_character_combo.SelectedItem.ToString().Split(':')[1].Substring(1);
         XMLParser.FillComboboxWithNames(XMLParser.CharacterXDocument.Handle, ref character_two_combo, FocusCharacter);
     }
 }
Ejemplo n.º 4
0
        override public void Update(XDocumentInformation x = null)
        {
            string fc = focus_character_combo.Text;

            XMLParser.FillComboboxWithNames(XMLParser.CharacterXDocument.Handle, ref focus_character_combo);
            focus_character_combo.Text = fc;
            XMLParser.FillComboboxWithNames(XMLParser.CharacterXDocument.Handle, ref character_two_combo, fc);
        }
Ejemplo n.º 5
0
        public EventRelationshipPrompt() : base()
        {
            InitializeComponent();

            XMLParser.FillComboboxWithNames(XMLParser.EventXDocument.Handle, ref focusCombo);

            AttachToXDocument(ref XMLParser.EventXDocument);
        }
Ejemplo n.º 6
0
        public ViewParticipants() : base()
        {
            InitializeComponent();
            XMLParser.FillComboboxWithNames(XMLParser.EventXDocument.Handle, ref focus_event_combo);
            FillPanelWithRelationships(relationship_stackpanel);

            AttachToXDocument(ref XMLParser.EventXDocument);
        }
Ejemplo n.º 7
0
        override public void Update(XDocumentInformation x = null)
        {
            string temp = focus_event_combo.Text;

            XMLParser.FillComboboxWithNames(XMLParser.EventXDocument.Handle, ref focus_event_combo);
            focus_event_combo.Text = temp;
            relationship_stackpanel.Children.Clear();
            FillPanelWithRelationships(relationship_stackpanel);
        }
Ejemplo n.º 8
0
        private void focusCombo_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (focusCombo.SelectedItem != null && XMLParser.IsTextValid(focusCombo.SelectedItem.ToString()))
            {
                string fcs = focusCombo.SelectedItem.ToString().Split(':')[1].Substring(1);

                XMLParser.FillComboboxWithNames(XMLParser.EventXDocument.Handle, ref event_one_combo, fcs);
                XMLParser.FillComboboxWithNames(XMLParser.EventXDocument.Handle, ref event_two_combo, fcs);
            }
        }
        override public void Update(XDocumentInformation x = null)
        {
            string temp = focus_character_combo.Text;

            XMLParser.FillComboboxWithNames(XMLParser.CharacterXDocument.Handle, ref focus_character_combo);
            focus_character_combo.Text = temp;
            parents_stackpanel.Children.Clear();
            children_stackpanel.Children.Clear();
            previous_marriages_stackpanel.Children.Clear();
            current_marriages_stackpanel.Children.Clear();
            FillPanelsWithRelationships();
        }
Ejemplo n.º 10
0
        public ParticipantPrompt(string fe) : base()
        {
            InitializeComponent();

            FocusEvent = fe;

            XMLParser.FillComboboxWithNames(XMLParser.CharacterXDocument.Handle, ref character_combo, FocusEvent);
            //relationship.Text = ParticipatedIn + " ";
            relationship.Text += FocusEvent;

            AttachToXDocument(ref XMLParser.CharacterXDocument);
        }
Ejemplo n.º 11
0
        public FamilyTreePromptWindow()
        {
            InitializeComponent();

            ComboBoxItem cBoxItem;

            foreach (string r in FamilyTreeConstruction.Relationships)
            {
                cBoxItem         = new ComboBoxItem();
                cBoxItem.Content = r;
                treeType.Items.Add(cBoxItem);
            }

            XMLParser.FillComboboxWithNames(XMLParser.CharacterXDocument.Handle, ref characterName);
        }
Ejemplo n.º 12
0
        public CharacterRelationshipPrompt(string fc = "") : base()
        {
            Relationships.Add(IsChildOf);
            Relationships.Add(IsParentOf);
            Relationships.Add(IsMarriedTo);
            Relationships.Add(WasMarriedTo);

            InitializeComponent();

            relationship_combo.ItemsSource = Relationships;

            XMLParser.FillComboboxWithNames(XMLParser.CharacterXDocument.Handle, ref focus_character_combo);
            focus_character_combo.Text = fc;
            XMLParser.FillComboboxWithNames(XMLParser.CharacterXDocument.Handle, ref character_two_combo, fc);

            AttachToXDocument(ref XMLParser.CharacterXDocument);
        }
Ejemplo n.º 13
0
 public EventMapPromptWindow() : base()
 {
     InitializeComponent();
     XMLParser.FillComboboxWithNames(XMLParser.LocationXDocument.Handle, ref locationName);
 }
Ejemplo n.º 14
0
 override public void Update(XDocumentInformation x = null)
 {
     XMLParser.FillComboboxWithNames(XMLParser.CharacterXDocument.Handle, ref character_combo, FocusEvent);
 }
Ejemplo n.º 15
0
 override public void Update(XDocumentInformation x = null)
 {
     XMLParser.FillComboboxWithNames(XMLParser.EventXDocument.Handle, ref focusCombo);
     event_one_combo.Items.Clear();
     event_two_combo.Items.Clear();
 }