public static Excel_returnCalcViewModel CreateExcel_returnCalc(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_returnCalc serial_Excel_returnCalc = serial_Class as FpmlSerializedCSharp.Excel_returnCalc; string typeStr = serial_Excel_returnCalc.Type_.ValueStr; return(Excel_returnCalcViewModel.CreateExcel_returnCalc(typeStr)); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_returnCalcInfo serial_Excel_returnCalcInfo = serial_Class as FpmlSerializedCSharp.Excel_returnCalcInfo; List <FpmlSerializedCSharp.Excel_returnCalc> serial_excel_returnCalc = serial_Excel_returnCalcInfo.Excel_returnCalc_; this.excel_returnCalcViewModel_ = new ObservableCollection <Excel_returnCalcViewModel>(); foreach (var item in serial_excel_returnCalc) { string type = item.Type_.ValueStr; Excel_returnCalcViewModel viewModel = Excel_returnCalcViewModel.CreateExcel_returnCalc(type); viewModel.setFromSerial(item); this.excel_returnCalcViewModel_.Add(viewModel); } this.view_ = new Excel_returnCalcInfoView(); this.view_.DataContext = this; }
public void selectExcel_returnCalcInfo(string typeStr) { this.excel_returnCalcViewModel_ = Excel_returnCalcViewModel.CreateExcel_returnCalc(typeStr); this.view_.DataContext = this; }