private void Button_Click(object sender, RoutedEventArgs e) { FpmlSerializedCSharp.IDManager.clearAll(); XmlDocument xmldoc = new XmlDocument(); //xmldoc.Load("http://localhost:8033/ch01-01.xml"); myTextBox.Text = ""; xmldoc.Load("..\\..\\testStructruedProductNodeExceptTime.xml"); myTextBox.Text = "loading.."; FpmlSerializedCSharp.StructuredProduct serial_sp = new FpmlSerializedCSharp.StructuredProduct(xmldoc.SelectSingleNode("StructuredProduct")); XmlBuilderViewModel xbvm = new XmlBuilderViewModel(); xbvm.setProduct(serial_sp); myTextBox.Text = "Done"; XmlBuilderCtrl_.setViewModel(xbvm); }
private void Button_Click(object sender, RoutedEventArgs e) { FpmlSerializedCSharp.IDManager.clearAll(); XmlDocument xmldoc = new XmlDocument(); //xmldoc.Load("http://localhost:8033/ch01-01.xml"); myTextBox.Text = ""; xmldoc.Load("..\\..\\testStructruedProductNodeExceptTime.xml"); myTextBox.Text = "loading.."; FpmlSerializedCSharp.StructuredProduct serial_sp = new FpmlSerializedCSharp.StructuredProduct(xmldoc.SelectSingleNode("StructuredProduct")); XmlBuilderViewModel xbvm = new XmlBuilderViewModel(); xbvm.setProduct(serial_sp); myTextBox.Text = "Done"; XmlBuilderCtrl_.setViewModel(xbvm); }
public void setProduct(FpmlSerializedCSharp.StructuredProduct serial_sp) { this.serial_sp_ = serial_sp; this.buildFromSerialClass(); }