コード例 #1
0
        public static Excel_eventCalcViewModel CreateExcel_eventCalc(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_eventCalc serial_Excel_eventCalc = serial_Class as FpmlSerializedCSharp.Excel_eventCalc;
            string typeStr = serial_Excel_eventCalc.Type_.ValueStr;

            return(Excel_eventCalcViewModel.CreateExcel_eventCalc(typeStr));
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_eventCalcInfo_Call serial_Excel_eventCalcInfo_Call = serial_Class as FpmlSerializedCSharp.Excel_eventCalcInfo_Call;

            List <FpmlSerializedCSharp.Excel_eventCalc> serial_excel_eventCalc = serial_Excel_eventCalcInfo_Call.Excel_eventCalc_;

            this.excel_eventCalcViewModel_ = new ObservableCollection <Excel_eventCalcViewModel>();
            foreach (var item in serial_excel_eventCalc)
            {
                string type = item.Type_.ValueStr;
                Excel_eventCalcViewModel viewModel = Excel_eventCalcViewModel.CreateExcel_eventCalc(type);
                viewModel.setFromSerial(item);
                this.excel_eventCalcViewModel_.Add(viewModel);
            }

            this.view_             = new Excel_eventCalcInfo_CallView();
            this.view_.DataContext = this;
        }
 public void selectExcel_eventCalcInfo(string typeStr)
 {
     this.excel_eventCalcViewModel_ = Excel_eventCalcViewModel.CreateExcel_eventCalc(typeStr);
     this.view_.DataContext         = this;
 }