public WindowTypeForm(WBOBase xml, string type) { InitializeComponent(); this.xml = xml; this.type = type; WindowType.Title = "Edit Type - " + type; button.Content = "_Edit Type"; XElement el = xml.getType(type); nameBox.Text = el.Element("Type").Value; codeBox.Text = el.Element("Code").Value; noteBox.Text = el.Element("Note").Value; }
public WindowTypeForm(WBOBase xml) { InitializeComponent(); this.xml = xml; type = null; }