Exemplo n.º 1
0
        public static Excel_scheduleViewModel CreateExcel_schedule(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_schedule serial_Excel_schedule = serial_Class as FpmlSerializedCSharp.Excel_schedule;
            string typeStr = serial_Excel_schedule.Type_.ValueStr;

            return(Excel_scheduleViewModel.CreateExcel_schedule(typeStr));
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_kiScheduleList serial_Excel_kiScheduleList = serial_Class as FpmlSerializedCSharp.Excel_kiScheduleList;

            List <FpmlSerializedCSharp.Excel_schedule> serial_excel_schedule = serial_Excel_kiScheduleList.Excel_schedule_;

            this.excel_scheduleViewModel_ = new ObservableCollection <Excel_scheduleViewModel>();
            foreach (var item in serial_excel_schedule)
            {
                string type = item.Type_.ValueStr;
                Excel_scheduleViewModel viewModel = Excel_scheduleViewModel.CreateExcel_schedule(type);
                viewModel.setFromSerial(item);
                this.excel_scheduleViewModel_.Add(viewModel);
            }

            this.view_             = new Excel_kiScheduleListView();
            this.view_.DataContext = this;
        }
 public void selectExcel_scheduleInfo(string typeStr)
 {
     this.excel_scheduleViewModel_ = Excel_scheduleViewModel.CreateExcel_schedule(typeStr);
     this.view_.DataContext        = this;
 }