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); }
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); }
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(); }
public void Fill_Note_Area(ref XDocumentInformation type, WrapPanel area) { List <Dictionary <string, string> > entityNodes = XMLParser.GetAllEntities(type.Handle); area.Children.Clear(); area.MinHeight = NoteNode.NoteNodeHeight; foreach (Dictionary <string, string> entityNode in entityNodes) { NoteNode n = new NoteNode(ref type); area.MinHeight += Convert.ToInt32(n.FillWith(entityNode)); area.Children.Add(n); } }
override public void Update(XDocumentInformation x) { if (x.Name.Equals(XMLParser.CharacterXDocument.Name)) { Fill_Note_Area(ref XMLParser.CharacterXDocument, character_notes_area); } else if (x.Name.Equals(XMLParser.LocationXDocument.Name)) { Fill_Note_Area(ref XMLParser.LocationXDocument, location_notes_area); } else if (x.Name.Equals(XMLParser.EventXDocument.Name)) { Fill_Note_Area(ref XMLParser.EventXDocument, event_notes_area); } else { Fill_Note_Area(ref XMLParser.NoteXDocument, general_notes_area); } }
private void SetXDocumentContent(string documentName, ref XDocumentInformation XDoc) { string filePath = FolderPath + $"\\Citadel_XML\\{documentName}.xml"; XDoc = new XDocumentInformation(); XDoc.Path = filePath; XDoc.Name = documentName; if (!Directory.Exists(FolderPath + $"\\Citadel_XML\\")) { Directory.CreateDirectory(FolderPath + $"\\Citadel_XML\\"); } if (!File.Exists(filePath)) { XDoc.Handle = new XDocument(new XElement(documentName)); XDoc.Save(); } else { XDoc.Handle = XDocument.Load(filePath); } }
override public void Update(XDocumentInformation x = null) { XMLParser.FillComboboxWithNames(XMLParser.CharacterXDocument.Handle, ref character_combo, FocusEvent); }
override public void Update(XDocumentInformation x = null) { }
override public void Update(XDocumentInformation x = null) { XMLParser.FillComboboxWithNames(XMLParser.EventXDocument.Handle, ref focusCombo); event_one_combo.Items.Clear(); event_two_combo.Items.Clear(); }
override public void Update(XDocumentInformation x = null) { Initialize_Locations(); }
//The Nodes used to represent all information stored about each entity on the front page public NoteNode(ref XDocumentInformation source) { EntityType = source; borderLine = new Border(); borderLine.BorderThickness = new Thickness(0.5, 0.5, 0.5, 0.5); borderLine.BorderBrush = new SolidColorBrush(Colors.Black); //borderLine.CornerRadius = new CornerRadius(2, 2, 2, 2); borderLine.Padding = new Thickness(1, 1, 1, 1); borderLine.Margin = new Thickness(5, 5, 5, 5); borderLine.Width = NoteNodeWidth; borderLine.MaxHeight = NoteNodeHeight; MainPanel = new StackPanel(); MainPanel.Background = Brushes.White; borderLine.Child = MainPanel; NameTextBlock = new TextBlock(); NameTextBlock.HorizontalAlignment = HorizontalAlignment.Center; NameTextBlock.FontSize = 16; NameTextBlock.Height = NameBoxHeight; MainPanel.Children.Add(NameTextBlock); MainPanel.Children.Add(new Separator()); ScrollViewer scrollView = new ScrollViewer(); scrollView.VerticalScrollBarVisibility = ScrollBarVisibility.Auto; scrollView.Padding = new Thickness(5); scrollView.Height = ContentBoxHeight; ContentStackPanel = new StackPanel(); //ContentTextBlock.TextWrapping = TextWrapping.Wrap; //ContentTextBlock.FontSize = 15; scrollView.Content = ContentStackPanel; MainPanel.Children.Add(scrollView); MainPanel.Children.Add(new Separator()); WrapPanel wrap = new WrapPanel(); wrap.HorizontalAlignment = HorizontalAlignment.Right; Button editButton = new Button(); ButtonStylize(editButton); editButton.Content = "Edit"; editButton.Click += EditClick; editButton.Height = ButtonHeight; editButton.Width = ButtonWidth; editButton.Margin = new Thickness(2); wrap.Children.Add(editButton); Button deleteButton = new Button(); ButtonStylize(deleteButton); deleteButton.Content = "Delete"; deleteButton.Click += DeleteClick;; deleteButton.Height = ButtonHeight; deleteButton.Width = ButtonWidth; deleteButton.Margin = new Thickness(2); wrap.Children.Add(deleteButton); MainPanel.Children.Add(wrap); this.Child = borderLine; }
override public void Update(XDocumentInformation x = null) { FillPanelWithRelationships(relationship_stackpanel); }
virtual public void Update(XDocumentInformation x = null) { // }
protected void AttachToXDocument(ref XDocumentInformation x) { Attachments.Add(x); x.Attach(this); }