public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ProtectionPart serial_ProtectionPart = serial_Class as FpmlSerializedCSharp.ProtectionPart;

            this.payRecieve_ = serial_ProtectionPart.PayRecieve_.ValueStr;

            FpmlSerializedCSharp.ReferenceInformationList serial_referenceInformationList = serial_ProtectionPart.ReferenceInformationList_;
            this.referenceInformationListViewModel_ = new ReferenceInformationListViewModel();
            this.referenceInformationListViewModel_.setFromSerial(serial_referenceInformationList);

            FpmlSerializedCSharp.ProtectionTerms serial_protectionTerms = serial_ProtectionPart.ProtectionTerms_;
            this.protectionTermsViewModel_ = new ProtectionTermsViewModel();
            this.protectionTermsViewModel_.setFromSerial(serial_protectionTerms);

            this.view_             = new ProtectionPartView();
            this.view_.DataContext = this;
        }
 public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.ProtectionPart serial_ProtectionPart = serial_Class as FpmlSerializedCSharp.ProtectionPart;
 
     this.payRecieve_ = serial_ProtectionPart.PayRecieve_.ValueStr;
     
     FpmlSerializedCSharp.ReferenceInformationList serial_referenceInformationList = serial_ProtectionPart.ReferenceInformationList_;
     this.referenceInformationListViewModel_ = new ReferenceInformationListViewModel();
     this.referenceInformationListViewModel_.setFromSerial(serial_referenceInformationList);
     
     FpmlSerializedCSharp.ProtectionTerms serial_protectionTerms = serial_ProtectionPart.ProtectionTerms_;
     this.protectionTermsViewModel_ = new ProtectionTermsViewModel();
     this.protectionTermsViewModel_.setFromSerial(serial_protectionTerms);
     
     this.view_ = new ProtectionPartView();
     this.view_.DataContext = this;
 }
 private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     this.viewModel_ = this.DataContext as ReferenceInformationListViewModel;
     this.referenceInfoListDataGrid_.ItemsSource = this.viewModel_.ReferenceInformationViewModel_;
 }
Пример #4
0
 private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     this.viewModel_ = this.DataContext as ReferenceInformationListViewModel;
     this.referenceInfoListDataGrid_.ItemsSource = this.viewModel_.ReferenceInformationViewModel_;
 }