protected override void loadInstrumentFromXml(XmlNode node)
        {
            //event를 받아서 할거라 constructor 로 올림
            this.view_.DataContext = this;

            //string
            FpmlSerializedCSharp.Root           serial_root     = new FpmlSerializedCSharp.Root(node);
            FpmlSerializedCSharp.InstrumentInfo serial_instInfo = serial_root.Instrument_.InstrumentInfo_;
            //FpmlSerializedCSharp.InstPositionInfo serial_instPositionInfo = serial_root.Instrument_.InstPositionInfo_;

            InstrumentViewModel vm1 = InstrumentViewModel.CreateInstVM(serial_instInfo);

            vm1.setFromSerial(serial_instInfo);

            //InstPositionInfoViewModel vm2 = new InstPositionInfoViewModel();
            //vm2.setFromSerial(serial_instPositionInfo);

            this.InstrumentViewModel_ = vm1;
            //this.InstPositionInfoViewModel_ = vm2;

            //InstrumentViewModel_.setFromXml(node);
        }
Пример #2
0
 public static InstrumentViewModel CreateInstVM(XmlNode node)
 {
     FpmlSerializedCSharp.InstrumentInfo serial_instInfo = new FpmlSerializedCSharp.InstrumentInfo(node);
     return(InstrumentViewModel.CreateInstVM(serial_instInfo));
 }