| | |
| | | rgbView.LoadPage(btnCollectionIcon, btnName, btnFromFloor); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | break; |
| | | case SPK.LightRGBW: |
| | | var rgbwView = new RGBWPage(function); |
| | | MainPage.BasePageView.AddChidren(rgbwView); |
| | | rgbwView.LoadPage(btnCollectionIcon, btnName, btnFromFloor); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | break; |
| | | case SPK.LightDimming: |
| | | var dimmerView = new DimmerPage(function); |
| | | MainPage.BasePageView.AddChidren(dimmerView); |
| | |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | break; |
| | | case SPK.CurtainRoller: |
| | | var rollingShutterView = new RollingShutterPage(function); |
| | | var rollingShutterView = new VenetianBlindsPage(function); |
| | | MainPage.BasePageView.AddChidren(rollingShutterView); |
| | | rollingShutterView.LoadPage(btnCollectionIcon, btnName, btnFromFloor); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | break; |
| | | case SPK.CurtainShades: |
| | | var curtainShadesView = new RollingShutterPage(function); |
| | | MainPage.BasePageView.AddChidren(curtainShadesView); |
| | | curtainShadesView.LoadPage(btnCollectionIcon, btnName, btnFromFloor); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | break; |
| | | case SPK.CurtainDream: |
| | | var curtainDreamView = new CurtainDreamPage(function); |
| | | MainPage.BasePageView.AddChidren(curtainDreamView); |
| | | curtainDreamView.LoadPage(btnCollectionIcon, btnName, btnFromFloor); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | break; |
| | | case SPK.FloorHeatStandard: |
| | |
| | | break; |
| | | case SPK.MusicStandard: |
| | | case SPK.AvMusic: |
| | | //Music.A31MusicModel.Current.functionMusic =function;//当前播放器 |
| | | //Music.A31MusicModel.Current= new Music.A31MusicModel { functionMusic = function };//当前播放器 |
| | | //var a31PlayMusicPage = new Music.A31PlayMusicPage(); |
| | | //MainPage.BasePageView.AddChidren(a31PlayMusicPage); |
| | | //a31PlayMusicPage.Show(); |
| | |
| | | var pirPage = new SensorPirPage(); |
| | | pirPage.ShowColltionButton = false; |
| | | pirPage.AddForm(function, btnCollectionIcon, btnName, btnFromFloor); |
| | | break; |
| | | case SPK.SensorHelp: |
| | | var helpPage = new PanelHelpPage(); |
| | | helpPage.ShowColltionButton = false; |
| | | helpPage.AddForm(function, btnCollectionIcon, btnName, btnFromFloor); |
| | | break; |
| | | case SPK.SensorWater: |
| | | var waterPage = new SensorWaterImmersionPage(); |
| | |
| | | case SPK.SenesorMegahealth: |
| | | case SPK.SenesorMegahealth2: |
| | | var smPage = new SenesorMegahealthPage(); |
| | | smPage.ShowColltionButton = false; |
| | | smPage.AddForm(function, btnCollectionIcon, btnName, btnFromFloor); |
| | | break; |
| | | case SPK.SensorGas: |
| | |
| | | case SPK.HvacAC: |
| | | var acPage = new AcControlPage(); |
| | | acPage.AddForm(function, btnCollectionIcon, btnName, btnFromFloor); |
| | | break; |
| | | case SPK.HvacCac: |
| | | var cacPage = new CacControlPage(); |
| | | cacPage.AddForm(function, btnCollectionIcon, btnName, btnFromFloor); |
| | | break; |
| | | case SPK.IrLearn: |
| | | var irLearinPage = new IrLearnPage(); |
| | |
| | | return eventHandler; |
| | | } |
| | | } |
| | | } |
| | | } |