コード例 #1
0
 public PageChangeSettings()
 {
     HeaterVM       = new HeaterViewModel();
     CoolerVM       = new CoolerViewModel();
     HumidVM        = new HumidViewModel();
     HeatExchangeVM = new HeatExchangeViewModel();
     RecircVM       = new RecircViewModel();
     GatesVM        = new GatesViewModel();
     FilterVM       = new FilterViewModel();
     SettingVM      = new SettingViewModel();
     VentVM         = new VentSettingViewModel();
     PageViewSettingsModels.Add(new EmptyVM());
     PageViewSettingsModels.Add(HeaterVM);
     PageViewSettingsModels.Add(CoolerVM);
     PageViewSettingsModels.Add(HumidVM);
     PageViewSettingsModels.Add(HeatExchangeVM);
     PageViewSettingsModels.Add(RecircVM);
     PageViewSettingsModels.Add(GatesVM);
     PageViewSettingsModels.Add(FilterVM);
     PageViewSettingsModels.Add(SettingVM);
     PageViewSettingsModels.Add(VentVM);
     // Set starting page
     CurrentPageViewSettingsModel = PageViewSettingsModels[0];
 }
コード例 #2
0
 public static void SetToStandart(CoolerViewModel current)
 {
     current.VisibleGrid = true;
 }
コード例 #3
0
 public static void SetToNull(CoolerViewModel current)
 {
     current.VisibleGrid = false;
 }