| | |
| | | <AndroidAsset Include="Assets\Phone\PersonalCenter\AddDevice\UploadToCloundSelect.png" /> |
| | | <AndroidAsset Include="Assets\Phone\PersonalCenter\AddDevice\MiniRemoteControlMenuIcon.png" /> |
| | | <AndroidAsset Include="Assets\Phone\PersonalCenter\AddDevice\WifiAndPhoneConnect.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\sensortvoc.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\irmodule.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\sensorpir.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\electricalai6HtccKFIw3dxo3.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\lightrgb.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\airFreshstandard.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\electricalracks.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\electricalfan.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\sensorpm25.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\acstandard.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\electricalsocket.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\sensorgas.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\sensorhumidity.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\electricalkoiGhMKwLf2ZP81g.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\lightcct.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\curtainroller.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\irlearn.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\lightdimming.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\sensorco2.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\electricaltv.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\floorHeatstandard.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\curtainswitch.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\curtainshades.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\electricaltyqborgovyzytytz.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\musicstandard.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\sensordoorwindow.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\lightrgbw.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\sensortemperature.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\curtaintrietex.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\sensorsmoke.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\electricalQ1RsefNf91tIXyyQ.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\irac.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\sensorwater.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\lightswitch.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\irtv.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\lightrgbw_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\irac_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricaltv_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalai6HtccKFIw3dxo3_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\curtaintrietex_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\floorHeatstandard_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\musicstandard_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalfan_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\curtainswitch_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\lightdimming_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\lightrgbw_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricaltyqborgovyzytytz_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\airFreshstandard_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\lightrgb_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\irtv_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\irlearn_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\musicstandard_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalfan_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\curtainshades_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalkoiGhMKwLf2ZP81g_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\irac_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalkoiGhMKwLf2ZP81g_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\acstandard_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\lightcct_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalracks_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalai6HtccKFIw3dxo3_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\lightswitch_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\curtaintrietex_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\airFreshstandard_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\floorHeatstandard_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\curtainshades_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalQ1RsefNf91tIXyyQ_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricaltyqborgovyzytytz_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\lightcct_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\lightrgb_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\curtainroller_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\curtainroller_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalQ1RsefNf91tIXyyQ_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\irtv_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalsocket_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\lightswitch_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\lightdimming_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricaltv_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalsocket_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\acstandard_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\irlearn_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\curtainswitch_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricalracks_white.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <AndroidNativeLibrary Include="libs\armeabi-v7a\libelianjni.so" /> |
| | |
| | | <BundleResource Include="Resources\Phone\PersonalCenter\AddDevice\UploadToCloundSelect.png" /> |
| | | <BundleResource Include="Resources\Phone\PersonalCenter\AddDevice\MiniRemoteControlMenuIcon.png" /> |
| | | <BundleResource Include="Resources\Phone\PersonalCenter\AddDevice\WifiAndPhoneConnect.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\sensortvoc.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\sensorpir.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\electricalai6HtccKFIw3dxo3.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\lightrgb.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\airFreshstandard.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\electricalracks.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\electricalfan.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\sensorpm25.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\acstandard.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\electricalsocket.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\sensorgas.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\sensorhumidity.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\electricalkoiGhMKwLf2ZP81g.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\lightcct.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\curtainroller.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\irlearn.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\lightdimming.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\sensorco2.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\electricaltv.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\floorHeatstandard.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\curtainswitch.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\curtainshades.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\electricaltyqborgovyzytytz.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\musicstandard.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\sensordoorwindow.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\lightrgbw.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\sensortemperature.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\curtaintrietex.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\sensorsmoke.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\electricalQ1RsefNf91tIXyyQ.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\irac.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\sensorwater.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\lightswitch.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\irtv.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\lightrgbw_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\irac_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricaltv_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalai6HtccKFIw3dxo3_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\curtaintrietex_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\floorHeatstandard_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\musicstandard_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalfan_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\curtainswitch_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\lightdimming_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\lightrgbw_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricaltyqborgovyzytytz_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\airFreshstandard_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\lightrgb_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\irtv_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\irlearn_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\musicstandard_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalfan_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\curtainshades_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalkoiGhMKwLf2ZP81g_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\irac_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalkoiGhMKwLf2ZP81g_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\acstandard_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\lightcct_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalracks_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalai6HtccKFIw3dxo3_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\lightswitch_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\curtaintrietex_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\airFreshstandard_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\floorHeatstandard_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\curtainshades_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalQ1RsefNf91tIXyyQ_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricaltyqborgovyzytytz_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\lightcct_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\lightrgb_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\curtainroller_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\curtainroller_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalQ1RsefNf91tIXyyQ_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\irtv_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalsocket_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\lightswitch_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\lightdimming_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricaltv_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalsocket_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\acstandard_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\irlearn_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\curtainswitch_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricalracks_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\irmodule.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <ITunesArtwork Include="iTunesArtwork" /> |
| | |
| | | return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetDevcieList, requestJson); |
| | | } |
| | | /// <summary> |
| | | /// 获取指定第三方品牌的绑定过的设备列表 |
| | | /// </summary> |
| | | /// <param name="productPlatform"></param> |
| | | /// <param name="productBrand"></param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew Get3TyBrandBindDeviceList(string productPlatform, string productBrand) |
| | | { |
| | | Dictionary<string, object> d = new Dictionary<string, object>(); |
| | | d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.RegionID); |
| | | d.Add("productPlatform", productPlatform); |
| | | d.Add("productBrand", productBrand); |
| | | |
| | | var requestJson = HttpUtil.GetSignRequestJson(d); |
| | | return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetDevcieList, requestJson); |
| | | } |
| | | /// <summary> |
| | | /// 获取指定第三方品牌的设备列表 |
| | | /// </summary> |
| | | /// <param name="productPlatform"></param> |
| | | /// <param name="productBrand"></param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew Get3TyBrandDeviceList(string productPlatform,string productBrand) |
| | | { |
| | | Dictionary<string, object> d = new Dictionary<string, object>(); |
| | | d.Add("categoryType", 1); |
| | | d.Add("productPlatform", productPlatform); |
| | | d.Add("productBrand", productBrand); |
| | | |
| | | var requestJson = HttpUtil.GetSignRequestJson(d); |
| | | return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_Get3tyBrandDevcieList, requestJson); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 获取设备详情列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | |
| | | /// </summary> |
| | | public const string Api_Post_GetDevcieList = "/home-wisdom/app/device/list"; |
| | | /// <summary> |
| | | /// 获取第三方品牌设备列表 |
| | | /// </summary> |
| | | public const string Api_Post_Get3tyBrandDevcieList = "/home-wisdom/app/product/list"; |
| | | /// <summary> |
| | | /// 获取设备详情 |
| | | /// </summary> |
| | | public const string Api_Post_GetDevcieInfoList = "/home-wisdom/app/device/info"; |
| | |
| | | /// 平台标识 |
| | | /// </summary> |
| | | public string productPlatform; |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 第三方设备信息 |
| | | /// </summary> |
| | | public class IntegratedBrandDevice |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 产品唯一标识 |
| | | /// </summary> |
| | | public string productId; |
| | | |
| | | /// <summary> |
| | | /// 产品名称 |
| | | /// </summary> |
| | | public string productName; |
| | | |
| | | /// <summary> |
| | | /// 产品厂商 |
| | | /// </summary> |
| | | public string productSupplier; |
| | | |
| | | /// <summary> |
| | | /// 产品品牌(品牌标识) |
| | | /// </summary> |
| | | public string productBrand; |
| | | |
| | | /// <summary> |
| | | /// 产品类型 |
| | | /// </summary> |
| | | public string productType; |
| | | |
| | | /// <summary> |
| | | /// 第二品类名 |
| | | /// </summary> |
| | | public string categorySecondName; |
| | | |
| | | /// <summary> |
| | | /// 第二品类code |
| | | /// </summary> |
| | | public string categorySecondCode; |
| | | |
| | | /// <summary> |
| | | /// 第一品类code |
| | | /// </summary> |
| | | public string categoryFirstCode; |
| | | |
| | | /// <summary> |
| | | /// 第一品类名称 |
| | | /// </summary> |
| | | public string categoryFirstName; |
| | | /// <summary> |
| | | /// 产品型号 |
| | | /// </summary> |
| | | public string productVersion; |
| | | |
| | | /// <summary> |
| | | /// 产品平台(平台标识) |
| | | /// </summary> |
| | | public string productPlatform; |
| | | |
| | | /// <summary> |
| | | /// 产品图片 |
| | | /// </summary> |
| | | public string productPic; |
| | | |
| | | /// <summary> |
| | | /// 功能类型Key |
| | | /// </summary> |
| | | public string spk; |
| | | |
| | | /// <summary> |
| | | /// 设备绑定方式 WIFI、QRSCAN、ZIG_BEE、ETHERNET |
| | | /// </summary> |
| | | public string bindType; |
| | | } |
| | | |
| | | } |
| | |
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\PirDevice\View\FrameLayout50.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\PirDevice\View\PirView.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\PirDevice\View\ControlView.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AddFunction\AddDevciePage.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\AddFunction\DeviceListPage.cs" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <Folder Include="$(MSBuildThisFileDirectory)DAL\" />
|
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using HDL_ON.Entity; |
| | | using HDL_ON.UI.CSS; |
| | | using Shared; |
| | | namespace HDL_ON.UI |
| | | { |
| | | public class AddDevciePage : FrameLayout |
| | | { |
| | | FrameLayout bodyView; |
| | | IntegratedBrand brand; |
| | | VerticalRefreshLayout contentView; |
| | | |
| | | public AddDevciePage(IntegratedBrand integratedBrand) |
| | | { |
| | | bodyView = this; |
| | | brand = integratedBrand; |
| | | } |
| | | |
| | | public void LoadPage() |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.AddDevice)).LoadTopView(); |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | | contentView = new VerticalRefreshLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(667 - 64), |
| | | VerticalScrollBarEnabled = false, |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | | |
| | | |
| | | |
| | | Load3tyBrandDeviceList(); |
| | | |
| | | } |
| | | |
| | | void Load3tyBrandDeviceList() |
| | | { |
| | | var waitPage = new Loading(); |
| | | waitPage.Start(); |
| | | new System.Threading.Thread(() => { |
| | | try |
| | | { |
| | | var pm = new DAL.Server.HttpServerRequest(); |
| | | //var result = pm.Get3tyBindBrandList |
| | | var pack = pm.Get3TyBrandDeviceList(brand.productPlatform, brand.productBrand); |
| | | if (pack.Code == DAL.Server.StateCode.SUCCESS) |
| | | { |
| | | var revData = Newtonsoft.Json.JsonConvert.DeserializeObject<List<IntegratedBrandDevice>>(pack.Data.ToString()); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | LoadRow(revData); |
| | | }); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log("1--::" + ex.Message); |
| | | } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => { waitPage.Hide(); }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | void LoadRow(List<IntegratedBrandDevice> deviceList) |
| | | { |
| | | contentView.RemoveAll(); |
| | | bool isFrist = true; |
| | | foreach (var device in deviceList) |
| | | { |
| | | FrameLayout row = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | contentView.AddChidren(row); |
| | | |
| | | if (isFrist) |
| | | { |
| | | isFrist = false; |
| | | } |
| | | else |
| | | { |
| | | Button btnLine = new Button() |
| | | { |
| | | X = Application.GetRealWidth(56), |
| | | Width = Application.GetRealWidth(303), |
| | | Height = 1, |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }; |
| | | row.AddChidren(btnLine); |
| | | } |
| | | |
| | | var btnIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(12), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(32), |
| | | Height = Application.GetRealWidth(32), |
| | | Radius = (uint)Application.GetRealWidth(4), |
| | | UnSelectedImagePath = $"FunctionIcon/Icon/{device.spk.Replace(".","")}.png", |
| | | }; |
| | | row.AddChidren(btnIcon); |
| | | Button btnRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | row.AddChidren(btnRight); |
| | | |
| | | Button btnName = new Button() |
| | | { |
| | | X = Application.GetRealWidth(56), |
| | | Width = Application.GetRealWidth(303), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = device.productName, |
| | | }; |
| | | row.AddChidren(btnName); |
| | | |
| | | btnName.MouseUpEventHandler = (sender, e) => { |
| | | switch (device.spk) |
| | | { |
| | | case SPK.IrModule: |
| | | var form = new AddMiniRemoteControlDirection1Page(); |
| | | form.AddForm(); |
| | | break; |
| | | } |
| | | }; |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | { |
| | | FrameLayout bodyView; |
| | | VerticalRefreshLayout contentView; |
| | | List<IntegratedBrand> brandList = new List<IntegratedBrand>(); |
| | | public AddThirdPartyBrandListpage() |
| | | List<IntegratedBrand> brandList; |
| | | public AddThirdPartyBrandListpage(List<IntegratedBrand> list) |
| | | { |
| | | bodyView = this; |
| | | brandList = list; |
| | | } |
| | | |
| | | public void LoadPage() |
| | |
| | | Button btnLine = new Button() |
| | | { |
| | | X = Application.GetRealWidth(56), |
| | | Y = Application.GetRealHeight(49), |
| | | Width = Application.GetRealWidth(303), |
| | | Height = 1, |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | |
| | | row.AddChidren(btnName); |
| | | //下载第三方品牌icon |
| | | ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.brandIcon, btnIcon); |
| | | |
| | | btnName.MouseUpEventHandler = (sender, e) => { |
| | | var page = new AddDevciePage(brand); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | }) { IsBackground = true }.Start(); |
| | | } |
| | | /// <summary> |
| | | /// 跳转添加设备界面 |
| | | /// </summary> |
| | | /// <param name="bandType">品牌类型</param> |
| | | void SkipPage_AddDevice() |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | FrameLayout bodyView; |
| | | |
| | | FrameLayout contentView; |
| | | VerticalScrolViewLayout contentView; |
| | | |
| | | List<IntegratedBrand> brandList; |
| | | |
| | | public BrandListPage() |
| | | { |
| | | bodyView = this; |
| | | brandList = new List<IntegratedBrand>(); |
| | | } |
| | | |
| | | public void LoadPage() |
| | | { |
| | | Action<string,string> action = (s,a) => { |
| | | var page = new AddThirdPartyBrandListpage(); |
| | | var page = new AddThirdPartyBrandListpage(brandList); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | this.RemoveFromParent(); |
| | | }; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView_AddIcon("3ty",action); |
| | | |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | | contentView = new FrameLayout() |
| | | contentView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(603), |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | | |
| | | |
| | | GetBindList(); |
| | | |
| | | } |
| | | /// <summary> |
| | |
| | | var pack = pm.Get3tyBrandList(); |
| | | if (pack.Code == DAL.Server.StateCode.SUCCESS) |
| | | { |
| | | var revData = Newtonsoft.Json.JsonConvert.DeserializeObject<List<IntegratedBrand>>(pack.Data.ToString()); |
| | | if (revData.Count > 0) |
| | | brandList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<IntegratedBrand>>(pack.Data.ToString()); |
| | | if (brandList.Count > 0) |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | LoadRow(revData); |
| | | LoadRow(); |
| | | }); |
| | | }else |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | void LoadRow(List<IntegratedBrand> brandList) |
| | | void LoadRow() |
| | | { |
| | | contentView.RemoveAll(); |
| | | bool isFrist = true; |
| | | foreach (var brand in brandList) |
| | | { |
| | | FrameLayout row = new FrameLayout() |
| | | var row = new RowLayout() |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | LineColor = 0x00000000, |
| | | }; |
| | | contentView.AddChidren(row); |
| | | |
| | |
| | | Button btnLine = new Button() |
| | | { |
| | | X = Application.GetRealWidth(56), |
| | | Y = Application.GetRealHeight(49), |
| | | Width = Application.GetRealWidth(303), |
| | | Height = 1, |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | |
| | | Height = Application.GetRealWidth(32), |
| | | Radius = (uint)Application.GetRealWidth(4), |
| | | BackgroundColor = CSS_Color.PromptingColor1 |
| | | //ImagePath = "tuya_logo.png" |
| | | }; |
| | | row.AddChidren(btnIcon); |
| | | Button btnRight = new Button() |
| | |
| | | row.AddChidren(btnName); |
| | | //下载第三方品牌icon |
| | | ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.brandIcon, btnIcon); |
| | | |
| | | btnName.MouseUpEventHandler = (sender, e) => { |
| | | var page = new DeviceListPage(brand); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | void NotListTipView() |
| | | { |
| | |
| | | |
| | | |
| | | btnAdd.MouseUpEventHandler = (sender, e) => { |
| | | var page = new AddThirdPartyBrandListpage(); |
| | | var page = new AddThirdPartyBrandListpage(brandList); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using HDL_ON.Entity; |
| | | using HDL_ON.UI.CSS; |
| | | using Shared; |
| | | namespace HDL_ON.UI |
| | | { |
| | | public class DeviceListPage : FrameLayout |
| | | { |
| | | FrameLayout bodyView; |
| | | VerticalRefreshLayout contentView; |
| | | |
| | | IntegratedBrand brand; |
| | | public DeviceListPage(IntegratedBrand integratedBrand) |
| | | { |
| | | bodyView = this; |
| | | brand = integratedBrand; |
| | | } |
| | | |
| | | |
| | | public void LoadPage() |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.AddDevice)).LoadTopView(); |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | | contentView = new VerticalRefreshLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(667 - 64), |
| | | VerticalScrollBarEnabled = false, |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | | |
| | | |
| | | |
| | | Load3tyBrandDeviceList(); |
| | | |
| | | } |
| | | |
| | | void Load3tyBrandDeviceList() |
| | | { |
| | | var waitPage = new Loading(); |
| | | waitPage.Start(); |
| | | new System.Threading.Thread(() => { |
| | | try |
| | | { |
| | | var pm = new DAL.Server.HttpServerRequest(); |
| | | var pack = pm.Get3TyBrandBindDeviceList(brand.productPlatform, brand.productBrand); |
| | | if (pack.Code == DAL.Server.StateCode.SUCCESS) |
| | | { |
| | | var revData = Newtonsoft.Json.JsonConvert.DeserializeObject<Function3tyBrandObj>(pack.Data.ToString()); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | LoadRow(revData.list); |
| | | }); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log("1--::" + ex.Message); |
| | | } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => { waitPage.Hide(); }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | void LoadRow(List<Function> deviceList) |
| | | { |
| | | deviceList.Add(new Function() { name ="测试红外宝",spk = SPK.IrModule}); |
| | | |
| | | contentView.RemoveAll(); |
| | | bool isFrist = true; |
| | | foreach (var device in deviceList) |
| | | { |
| | | FrameLayout row = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | contentView.AddChidren(row); |
| | | |
| | | if (isFrist) |
| | | { |
| | | isFrist = false; |
| | | } |
| | | else |
| | | { |
| | | Button btnLine = new Button() |
| | | { |
| | | X = Application.GetRealWidth(56), |
| | | Width = Application.GetRealWidth(303), |
| | | Height = 1, |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }; |
| | | row.AddChidren(btnLine); |
| | | } |
| | | |
| | | var btnIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(12), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(32), |
| | | Height = Application.GetRealWidth(32), |
| | | Radius = (uint)Application.GetRealWidth(4), |
| | | UnSelectedImagePath = $"FunctionIcon/Icon/{device.spk.Replace(".", "")}.png", |
| | | }; |
| | | row.AddChidren(btnIcon); |
| | | Button btnRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | row.AddChidren(btnRight); |
| | | |
| | | Button btnName = new Button() |
| | | { |
| | | X = Application.GetRealWidth(56), |
| | | Width = Application.GetRealWidth(303), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = device.name, |
| | | }; |
| | | row.AddChidren(btnName); |
| | | |
| | | btnName.MouseUpEventHandler = (sender, e) => { |
| | | switch (device.spk) |
| | | { |
| | | case SPK.IrModule: |
| | | UI2.PersonalCenter.PirDevice.Method.GetPirDeviceList(this, () => |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | var page = new UI2.PersonalCenter.PirDevice.PirMain(); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.Show(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }); |
| | | }); |
| | | break; |
| | | } |
| | | }; |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 云端返回的第三方设备列表数据 |
| | | /// </summary> |
| | | public class Function3tyBrandObj |
| | | { |
| | | public List<Function> list = new List<Function>(); |
| | | } |
| | | |
| | | } |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using HDL_ON.Entity; |
| | | using HDL_ON.UI.CSS; |
| | | using Shared; |
| | | namespace HDL_ON.UI |
| | | { |
| | | public class ThirdPartyBrandListPage : FrameLayout |
| | | { |
| | | //using System; |
| | | //using System.Collections.Generic; |
| | | //using HDL_ON.Entity; |
| | | //using HDL_ON.UI.CSS; |
| | | //using Shared; |
| | | //namespace HDL_ON.UI |
| | | //{ |
| | | // public class ThirdPartyBrandListPage : FrameLayout |
| | | // { |
| | | |
| | | FrameLayout bodyView; |
| | | FrameLayout contentView; |
| | | Button btnAdd; |
| | | // FrameLayout bodyView; |
| | | // FrameLayout contentView; |
| | | // Button btnAdd; |
| | | |
| | | public ThirdPartyBrandListPage() |
| | | { |
| | | bodyView = this; |
| | | } |
| | | // public ThirdPartyBrandListPage() |
| | | // { |
| | | // bodyView = this; |
| | | // } |
| | | |
| | | public void LoadPage() |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView(); |
| | | // public void LoadPage() |
| | | // { |
| | | // new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView(); |
| | | |
| | | contentView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(667-64), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | | // contentView = new FrameLayout() |
| | | // { |
| | | // Y = Application.GetRealHeight(64), |
| | | // Height = Application.GetRealHeight(667-64), |
| | | // BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | // }; |
| | | // bodyView.AddChidren(contentView); |
| | | |
| | | AddEmptyTipView(); |
| | | // AddEmptyTipView(); |
| | | |
| | | Button btnTipMsg = new Button() |
| | | { |
| | | Height = Application.GetRealHeight(17 + 24), |
| | | Y = Application.GetRealHeight(535 - 12), |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextID = StringId.TipAddThirdPartyDeviceMsg, |
| | | }; |
| | | bodyView.AddChidren(btnTipMsg); |
| | | // Button btnTipMsg = new Button() |
| | | // { |
| | | // Height = Application.GetRealHeight(17 + 24), |
| | | // Y = Application.GetRealHeight(535 - 12), |
| | | // TextColor = CSS_Color.TextualColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextID = StringId.TipAddThirdPartyDeviceMsg, |
| | | // }; |
| | | // bodyView.AddChidren(btnTipMsg); |
| | | |
| | | btnAdd = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(564), |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealWidth(44), |
| | | Radius = (uint)Application.GetRealWidth(22), |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextID = StringId.Add, |
| | | }; |
| | | bodyView.AddChidren(btnAdd); |
| | | // btnAdd = new Button() |
| | | // { |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Y = Application.GetRealHeight(564), |
| | | // Width = Application.GetRealWidth(220), |
| | | // Height = Application.GetRealWidth(44), |
| | | // Radius = (uint)Application.GetRealWidth(22), |
| | | // BackgroundColor = CSS_Color.MainColor, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.MainBackgroundColor, |
| | | // TextID = StringId.Add, |
| | | // }; |
| | | // bodyView.AddChidren(btnAdd); |
| | | |
| | | LoadEvent_SikpAddBrand(); |
| | | } |
| | | // LoadEvent_SikpAddBrand(); |
| | | // } |
| | | |
| | | /// <summary> |
| | | /// 添加内容为空提示页面 |
| | | /// </summary> |
| | | void AddEmptyTipView() |
| | | { |
| | | var emptyTipView = new FrameLayout() |
| | | { |
| | | Height =Application.GetRealWidth(470), |
| | | Width = contentView.Width, |
| | | }; |
| | | contentView.AddChidren(emptyTipView); |
| | | // /// <summary> |
| | | // /// 添加内容为空提示页面 |
| | | // /// </summary> |
| | | // void AddEmptyTipView() |
| | | // { |
| | | // var emptyTipView = new FrameLayout() |
| | | // { |
| | | // Height =Application.GetRealWidth(470), |
| | | // Width = contentView.Width, |
| | | // }; |
| | | // contentView.AddChidren(emptyTipView); |
| | | |
| | | var tipView = new EmptyTipView(Language.StringByID(StringId.TipNotThirdPartyDevice)) |
| | | { |
| | | Gravity = Gravity.Center |
| | | }; |
| | | emptyTipView.AddChidren(tipView); |
| | | } |
| | | /// <summary> |
| | | /// 跳转绑定第三方品牌界面 |
| | | /// </summary> |
| | | void LoadEvent_SikpAddBrand() |
| | | { |
| | | btnAdd.MouseUpEventHandler = (sender, e) => { |
| | | var page = new AddThirdPartyBrandListpage(); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | } |
| | | } |
| | | } |
| | | // var tipView = new EmptyTipView(Language.StringByID(StringId.TipNotThirdPartyDevice)) |
| | | // { |
| | | // Gravity = Gravity.Center |
| | | // }; |
| | | // emptyTipView.AddChidren(tipView); |
| | | // } |
| | | // /// <summary> |
| | | // /// 跳转绑定第三方品牌界面 |
| | | // /// </summary> |
| | | // void LoadEvent_SikpAddBrand() |
| | | // { |
| | | // btnAdd.MouseUpEventHandler = (sender, e) => { |
| | | // var page = new AddThirdPartyBrandListpage(); |
| | | // MainPage.BasePageView.AddChidren(page); |
| | | // page.LoadPage(); |
| | | // MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | // }; |
| | | // } |
| | | // } |
| | | //} |