public static Excel_referenceCal_IDViewModel CreateExcel_referenceCal_ID(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_referenceCal_ID serial_Excel_referenceCal_ID = serial_Class as FpmlSerializedCSharp.Excel_referenceCal_ID;
            string typeStr = serial_Excel_referenceCal_ID.Type_.ValueStr;

            return(Excel_referenceCal_IDViewModel.CreateExcel_referenceCal_ID(typeStr));
        }
Example #2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_referenceCal_IDList serial_Excel_referenceCal_IDList = serial_Class as FpmlSerializedCSharp.Excel_referenceCal_IDList;

            List <FpmlSerializedCSharp.Excel_referenceCal_ID> serial_excel_referenceCal_ID = serial_Excel_referenceCal_IDList.Excel_referenceCal_ID_;

            this.excel_referenceCal_IDViewModel_ = new ObservableCollection <Excel_referenceCal_IDViewModel>();
            foreach (var item in serial_excel_referenceCal_ID)
            {
                string type = item.Type_.ValueStr;
                Excel_referenceCal_IDViewModel viewModel = Excel_referenceCal_IDViewModel.CreateExcel_referenceCal_ID(type);
                viewModel.setFromSerial(item);
                this.excel_referenceCal_IDViewModel_.Add(viewModel);
            }

            this.view_             = new Excel_referenceCal_IDListView();
            this.view_.DataContext = this;
        }
Example #3
0
 public void selectExcel_referenceCal_IDInfo(string typeStr)
 {
     this.excel_referenceCal_IDViewModel_ = Excel_referenceCal_IDViewModel.CreateExcel_referenceCal_ID(typeStr);
     this.view_.DataContext = this;
 }