public void setInstPositionInfo(string krCode,
     string instName,
     string instCode,
     string instType,
     double notional)
 {
     this.instPositionVM_ = new InstPositionInfoViewModel();
 }
Пример #2
0
        protected void loadPositionFromXml(XmlNode node)
        {
            FpmlSerializedCSharp.Root             serial_root             = new FpmlSerializedCSharp.Root(node);
            FpmlSerializedCSharp.InstPositionInfo serial_instPositionInfo = serial_root.Instrument_.InstPositionInfo_;

            InstPositionInfoViewModel vm = new InstPositionInfoViewModel();

            vm.setFromSerial(serial_instPositionInfo);

            this.InstPositionInfoViewModel_ = vm;

            this.itemCode_ = vm.InstCode_;
            this.itemType_ = vm.InstType_;
        }
 private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     this.ViewModel_ = this.DataContext as InstPositionInfoViewModel;
     this.mainPanel_.DataContext = this.viewModel_;
 }
        protected void loadPositionFromXml(XmlNode node)
        {
            FpmlSerializedCSharp.Root serial_root = new FpmlSerializedCSharp.Root(node);
            FpmlSerializedCSharp.InstPositionInfo serial_instPositionInfo = serial_root.Instrument_.InstPositionInfo_;

            InstPositionInfoViewModel vm = new InstPositionInfoViewModel();
            vm.setFromSerial(serial_instPositionInfo);

            this.InstPositionInfoViewModel_ = vm;

            this.itemCode_ = vm.InstCode_;
            this.itemType_ = vm.InstType_;

        }
Пример #5
0
 private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     this.ViewModel_             = this.DataContext as InstPositionInfoViewModel;
     this.mainPanel_.DataContext = this.viewModel_;
 }