public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface; FpmlSerializedCSharp.Excel_hifive serial_Excel_hifive = serial_Excel_interface.Excel_hifive_; FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_hifive.Excel_issueInfo_; string excel_issueInfotype = serial_excel_issueInfo.Excel_type_.ValueStr; this.excel_issueInfoViewModel_ = Excel_issueInfoViewModel.CreateExcel_issueInfo(excel_issueInfotype); this.excel_issueInfoViewModel_.setFromSerial(serial_excel_issueInfo); FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_hifive.Excel_underlyingCalcInfo_; string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr; this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype); this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo); FpmlSerializedCSharp.Excel_hifive_subtype serial_excel_hifive_subtype = serial_Excel_hifive.Excel_hifive_subtype_; string excel_hifive_subtypetype = serial_excel_hifive_subtype.Excel_type_.ValueStr; this.excel_hifive_subtypeViewModel_ = Excel_hifive_subtypeViewModel.CreateExcel_hifive_subtype(excel_hifive_subtypetype); this.excel_hifive_subtypeViewModel_.setFromSerial(serial_excel_hifive_subtype); FpmlSerializedCSharp.Excel_scheduleList serial_excel_scheduleList = serial_Excel_hifive.Excel_scheduleList_; string excel_scheduleListtype = serial_excel_scheduleList.Excel_type_.ValueStr; this.excel_scheduleListViewModel_ = Excel_scheduleListViewModel.CreateExcel_scheduleList(excel_scheduleListtype); this.excel_scheduleListViewModel_.setFromSerial(serial_excel_scheduleList); FpmlSerializedCSharp.Excel_kiEventCalculation serial_excel_kiEventCalculation = serial_Excel_hifive.Excel_kiEventCalculation_; string excel_kiEventCalculationtype = serial_excel_kiEventCalculation.Excel_type_.ValueStr; this.excel_kiEventCalculationViewModel_ = Excel_kiEventCalculationViewModel.CreateExcel_kiEventCalculation(excel_kiEventCalculationtype); this.excel_kiEventCalculationViewModel_.setFromSerial(serial_excel_kiEventCalculation); }
public void setScheduleFromClone(Excel_scheduleListViewModel e_sLVM) { this.excel_scheduleViewModel_.Clear(); foreach (var item in e_sLVM.excel_scheduleViewModel_) { this.excel_scheduleViewModel_.Add(item); } }
public override void excel_scheduleListVMBuild() { int scheduleNum = this.subScheduleDataList_.Count;; Excel_scheduleListViewModel e_slvm = new Excel_scheduleListViewModel(); for (int i = 0; i < scheduleNum; i++) { e_slvm.Excel_scheduleViewModel_.Add( this.excel_simpleCalculationVMBuild(this.subScheduleDataList_[i])); } this.Excel_scheduleListViewModel_ = e_slvm; }
public override void excel_scheduleListVMBuild() { int scheduleNum = this.subScheduleDataList_.Count; ; Excel_scheduleListViewModel e_slvm = new Excel_scheduleListViewModel(); for (int i = 0; i < scheduleNum; i++) { e_slvm.Excel_scheduleViewModel_.Add( this.excel_simpleCalculationVMBuild(this.subScheduleDataList_[i])); } this.Excel_scheduleListViewModel_ = e_slvm; }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_scheduleListViewModel; this.ScheduleDataGrid_.ItemsSource = this.viewModel_.Excel_scheduleViewModel_; }
public void setScheduleFromClone(Excel_scheduleListViewModel e_sLVM) { this.excel_scheduleViewModel_.Clear(); foreach (var item in e_sLVM.excel_scheduleViewModel_) { this.excel_scheduleViewModel_.Add(item); } }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface; FpmlSerializedCSharp.Excel_hifive serial_Excel_hifive = serial_Excel_interface.Excel_hifive_; FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_hifive.Excel_issueInfo_; string excel_issueInfotype = serial_excel_issueInfo.Excel_type_.ValueStr; this.excel_issueInfoViewModel_ = Excel_issueInfoViewModel.CreateExcel_issueInfo(excel_issueInfotype); this.excel_issueInfoViewModel_.setFromSerial(serial_excel_issueInfo); FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_hifive.Excel_underlyingCalcInfo_; string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr; this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype); this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo); FpmlSerializedCSharp.Excel_hifive_subtype serial_excel_hifive_subtype = serial_Excel_hifive.Excel_hifive_subtype_; string excel_hifive_subtypetype = serial_excel_hifive_subtype.Excel_type_.ValueStr; this.excel_hifive_subtypeViewModel_ = Excel_hifive_subtypeViewModel.CreateExcel_hifive_subtype(excel_hifive_subtypetype); this.excel_hifive_subtypeViewModel_.setFromSerial(serial_excel_hifive_subtype); FpmlSerializedCSharp.Excel_scheduleList serial_excel_scheduleList = serial_Excel_hifive.Excel_scheduleList_; string excel_scheduleListtype = serial_excel_scheduleList.Excel_type_.ValueStr; this.excel_scheduleListViewModel_ = Excel_scheduleListViewModel.CreateExcel_scheduleList(excel_scheduleListtype); this.excel_scheduleListViewModel_.setFromSerial(serial_excel_scheduleList); FpmlSerializedCSharp.Excel_kiEventCalculation serial_excel_kiEventCalculation = serial_Excel_hifive.Excel_kiEventCalculation_; string excel_kiEventCalculationtype = serial_excel_kiEventCalculation.Excel_type_.ValueStr; this.excel_kiEventCalculationViewModel_ = Excel_kiEventCalculationViewModel.CreateExcel_kiEventCalculation(excel_kiEventCalculationtype); this.excel_kiEventCalculationViewModel_.setFromSerial(serial_excel_kiEventCalculation); }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_scheduleListViewModel; this.ScheduleDataGrid_.ItemsSource = this.viewModel_.Excel_scheduleViewModel_; }