Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public WindowTypeForm(WBOBase xml)
 {
     InitializeComponent();
     this.xml = xml;
     type = null;
 }