15个文件已添加
21个文件已删除
252个文件已修改
16 文件已重命名
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
| | |
| | | 373=æ·»å æ¥¼å±å¤±è´¥ã |
| | | 374=ä½å®
æ°æ®å·²è¢«å é¤ï¼APPå°èªå¨åæ¢å°å¦ä¸ä½å®
ã |
| | | 375=ç½å
³æªè¿æ¥æå¡å¨ï¼æ æ³åå»ºåºæ¯ã |
| | | 376=欢è¿åå®¶ |
| | | 377=äºç»´ç 失æï¼è¯·éè¯ |
| | | 378=éè¯ |
| | | |
| | | 5000=é³ä¹ |
| | | 5001=ç»å |
| | |
| | | <AndroidResource Include="Resources\mipmap-anydpi-v26\ic_launcher.xml" /> |
| | | <AndroidResource Include="Resources\mipmap-anydpi-v26\ic_launcher_round.xml" /> |
| | | <AndroidResource Include="Resources\drawable\Loading.png"> |
| | | <SubType></SubType> |
| | | <Generator></Generator> |
| | | <SubType> |
| | | </SubType> |
| | | <Generator> |
| | | </Generator> |
| | | </AndroidResource> |
| | | <AndroidResource Include="Resources\drawable\Icon.png"> |
| | | <SubType></SubType> |
| | | <Generator></Generator> |
| | | <SubType> |
| | | </SubType> |
| | | <Generator> |
| | | </Generator> |
| | | </AndroidResource> |
| | | <AndroidResource Include="Resources\mipmap-xxhdpi\Icon.png"> |
| | | <SubType></SubType> |
| | | <Generator></Generator> |
| | | <SubType> |
| | | </SubType> |
| | | <Generator> |
| | | </Generator> |
| | | </AndroidResource> |
| | | <AndroidResource Include="Resources\xml\network_security_config.xml"> |
| | | <SubType></SubType> |
| | | <Generator></Generator> |
| | | <SubType> |
| | | </SubType> |
| | | <Generator> |
| | | </Generator> |
| | | </AndroidResource> |
| | | <AndroidResource Include="Resources\xml\file_paths.xml"> |
| | | <SubType></SubType> |
| | | <Generator></Generator> |
| | | <SubType> |
| | | </SubType> |
| | | <Generator> |
| | | </Generator> |
| | | </AndroidResource> |
| | | <AndroidResource Include="Resources\layout\zxing_layout.xml"> |
| | | <SubType></SubType> |
| | | <Generator></Generator> |
| | | <SubType> |
| | | </SubType> |
| | | <Generator> |
| | | </Generator> |
| | | </AndroidResource> |
| | | <AndroidResource Include="Resources\mipmap-xhdpi\Icon.png"> |
| | | <SubType></SubType> |
| | | <Generator></Generator> |
| | | <SubType> |
| | | </SubType> |
| | | <Generator> |
| | | </Generator> |
| | | </AndroidResource> |
| | | <AndroidResource Include="Resources\mipmap-mdpi\Icon.png"> |
| | | <SubType></SubType> |
| | | <Generator></Generator> |
| | | <SubType> |
| | | </SubType> |
| | | <Generator> |
| | | </Generator> |
| | | </AndroidResource> |
| | | <AndroidResource Include="Resources\mipmap-hdpi\Icon.png"> |
| | | <SubType></SubType> |
| | | <Generator></Generator> |
| | | <SubType> |
| | | </SubType> |
| | | <Generator> |
| | | </Generator> |
| | | </AndroidResource> |
| | | <AndroidResource Include="Resources\mipmap-anydpi-v26\Icon.png"> |
| | | <SubType></SubType> |
| | | <Generator></Generator> |
| | | <SubType> |
| | | </SubType> |
| | | <Generator> |
| | | </Generator> |
| | | </AndroidResource> |
| | | <AndroidResource Include="Resources\mipmap-xxxhdpi\Icon.png"> |
| | | <SubType></SubType> |
| | | <Generator></Generator> |
| | | <SubType> |
| | | </SubType> |
| | | <Generator> |
| | | </Generator> |
| | | </AndroidResource> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <Folder Include="Resources\drawable\" /> |
| | | <Folder Include="Resources\layout\" /> |
| | | <Folder Include="Assets\Phone\Intelligence\" /> |
| | | <Folder Include="Assets\Phone\DeviceIcon\" /> |
| | | <Folder Include="Other\" /> |
| | | <Folder Include="Other\JPush\" /> |
| | | </ItemGroup> |
| | | <ItemGroup /> |
| | | <ItemGroup> |
| | | <PackageReference Include="Xamarin.Android.Support.Design" Version="28.0.0.3" /> |
| | | <PackageReference Include="Xamarin.Android.Support.Core.Utils" Version="28.0.0.3" /> |
| | |
| | | <AndroidNativeLibrary Include="libs\armeabi-v7a\libelianjni.so" /> |
| | | <AndroidNativeLibrary Include="libs\armeabi-v7a\libjcore127.so" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <AndroidAsset Include="Assets\Phone\oRobot.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <AndroidAsset Include="Assets\Phone\RoomListBg.png" /> |
| | | </ItemGroup> |
| | | <Import Project="..\HDL_ON\HDL_ON.projitems" Label="Shared" Condition="Exists('..\HDL_ON\HDL_ON.projitems')" /> |
| | | <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> |
| | | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="202012162" android:versionName="1.0.202012162" package="com.hdl.onpro"> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="202012161" android:versionName="1.0.202012161" package="com.hdl.onpro"> |
| | | <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="26" /> |
| | | <!-- å®ä½æé--> |
| | | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
| | |
| | | #pragma warning disable 1591 |
| | | //------------------------------------------------------------------------------ |
| | | // <auto-generated> |
| | | // This code was generated by a tool. |
| | | // æ¤ä»£ç ç±å·¥å
·çæã |
| | | // è¿è¡æ¶çæ¬:4.0.30319.42000 |
| | | // |
| | | // Changes to this file may cause incorrect behavior and will be lost if |
| | | // the code is regenerated. |
| | | // å¯¹æ¤æä»¶çæ´æ¹å¯è½ä¼å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¹¶ä¸å¦æ |
| | | // éæ°çæä»£ç ï¼è¿äºæ´æ¹å°ä¼ä¸¢å¤±ã |
| | | // </auto-generated> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | |
| | | { |
| | | |
| | | |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] |
| | | [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] |
| | | public partial class Resource |
| | | { |
| | | |
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
| | |
| | | </PackageReference> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1024x500.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048X2732 .png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\4096X4096.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\750X1134.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\1024.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\120.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\152.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\167.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\180.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\20.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\29.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\40.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\58.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\60.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\76.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\80.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\87.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\Contents.json" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\Contents.json" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\40·40%402x.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\60·60%403x.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\58·58%402x.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\87·87%403x.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\80·80%402x.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\120·120%402x.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\120·120%403x.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\180·180%403x.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\20·20.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\40·40%402x-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\29·29.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\58·58%402x-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\1024·1024%402x.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1242*2688.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\828*1792.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2688*1242.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1792*828.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1125*2436.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2436*1125.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1242*2208.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\750*1334.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2208*1242.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640*960.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\320*480.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640*960-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640*1136.png" /> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640*1136-1.png" /> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1024x500.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048X2732 .png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\4096X4096.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\750X1134.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\1024.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\120.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\152.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\167.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\180.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\20.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\29.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\40.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\58.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\60.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\76.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\80.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\87.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\AppIcon.appiconset\Contents.json"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\Contents.json"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\40·40%402x.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\60·60%403x.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\58·58%402x.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\87·87%403x.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\80·80%402x.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\120·120%402x.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\120·120%403x.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\180·180%403x.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\20·20.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\40·40%402x-1.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\29·29.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\58·58%402x-1.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\1024·1024%402x.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1242_2688.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\828_1792.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2688_1242.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1792_828.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1125_2436.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2436_1125.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1242_2208.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\750_1334.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2208_1242.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_960.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\320_480.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_960-1.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_1136.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_1136-1.png"> |
| | | <Visible>false</Visible> |
| | | </ImageAsset> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <Folder Include="Resources\" /> |
| | |
| | | <BundleResource Include="Resources\Phone\LogicIcon\selectTheFun.png" /> |
| | | <BundleResource Include="Resources\Phone\LogicIcon\selectTheScene.png" /> |
| | | <BundleResource Include="Resources\Phone\LogicIcon\selectTheTime.png" /> |
| | | <BundleResource Include="Resources\Phone\PersonalCenter\AppUnlockSetting\FaceIdIconBig.png" /> |
| | | <BundleResource Include="Resources\Phone\PersonalCenter\AppUnlockSetting\FingerIconBlue.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <ITunesArtwork Include="iTunesArtwork" /> |
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
New file |
| | |
| | | Microsoft Visual Studio Solution File, Format Version 12.00
|
| | | # Visual Studio Version 16
|
| | | VisualStudioVersion = 16.0.29519.87
|
| | | MinimumVisualStudioVersion = 10.0.40219.1
|
| | | Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "HDL_ON", "HDL_ON\HDL_ON.shproj", "{A5C296B4-CF9A-4205-ACF0-3A6FEA786F12}"
|
| | | EndProject
|
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HDL-ON_Android", "HDL-ON_Android\HDL-ON_Android.csproj", "{09712674-2A38-407B-B1E2-560B2C352F9A}"
|
| | | EndProject
|
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HDL-ON_iOS", "HDL-ON_iOS\HDL-ON_iOS.csproj", "{D998E133-F0DD-4760-BE3C-461632F54DA4}"
|
| | | EndProject
|
| | | Global
|
| | | GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
| | | HDL_ON\HDL_ON.projitems*{09712674-2a38-407b-b1e2-560b2c352f9a}*SharedItemsImports = 4
|
| | | HDL_ON\HDL_ON.projitems*{a5c296b4-cf9a-4205-acf0-3a6fea786f12}*SharedItemsImports = 13
|
| | | HDL_ON\HDL_ON.projitems*{d998e133-f0dd-4760-be3c-461632f54da4}*SharedItemsImports = 4
|
| | | EndGlobalSection
|
| | | GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
| | | Debug|Any CPU = Debug|Any CPU
|
| | | Debug|iPhone = Debug|iPhone
|
| | | Debug|iPhoneSimulator = Debug|iPhoneSimulator
|
| | | Release|Any CPU = Release|Any CPU
|
| | | Release|iPhone = Release|iPhone
|
| | | Release|iPhoneSimulator = Release|iPhoneSimulator
|
| | | EndGlobalSection
|
| | | GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Debug|iPhone.Build.0 = Debug|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Release|Any CPU.Build.0 = Release|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Release|iPhone.ActiveCfg = Release|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Release|iPhone.Build.0 = Release|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
| | | {09712674-2A38-407B-B1E2-560B2C352F9A}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Debug|iPhone.ActiveCfg = Debug|iPhone
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Debug|iPhone.Build.0 = Debug|iPhone
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Release|Any CPU.Build.0 = Release|iPhoneSimulator
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Release|iPhone.ActiveCfg = Release|iPhone
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Release|iPhone.Build.0 = Release|iPhone
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
|
| | | {D998E133-F0DD-4760-BE3C-461632F54DA4}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
|
| | | EndGlobalSection
|
| | | GlobalSection(SolutionProperties) = preSolution
|
| | | HideSolutionNode = FALSE
|
| | | EndGlobalSection
|
| | | GlobalSection(ExtensibilityGlobals) = postSolution
|
| | | SolutionGuid = {8C0F1E94-EA58-41A0-B620-41091484BCEE}
|
| | | EndGlobalSection
|
| | | EndGlobal
|
| | |
| | | Shared.Application.RunOnMainThread(() => |
| | | { |
| | | new Alert(jpushMessageInfo.Title, jpushMessageInfo.Content, Language.StringByID(StringId.Close)).Show(); |
| | | GetPushMessageAction?.Invoke(); |
| | | //GetPushMessageAction?.Invoke(); |
| | | }); |
| | | return; |
| | | } |
| | |
| | | { |
| | | public static class StringId |
| | | { |
| | | public const int Retry = 378; |
| | | public const int QRCodeIsInvalid = 377; |
| | | public const int WellComBackHome = 376; |
| | | public const int GatewayOfflineCannotCreateScene = 375; |
| | | public const int ResidenceDeletedSwitchToAnotherResidence = 374; |
| | | public const int AddFloorFail = 373; |
| | |
| | | /// <summary> |
| | | /// 常ç¨å·¥å
·ç±» |
| | | /// </summary> |
| | | public static class Utlis |
| | | public class Utlis |
| | | { |
| | | /// <summary> |
| | | /// å
¨å±æå° |
| | |
| | | return Language.CurrentLanguage == "Chinese" ? LanguageTypeEnum.CHINESE.ToString() : LanguageTypeEnum.ENGLISH.ToString(); |
| | | } |
| | | |
| | | |
| | | #region æ¶é´æ ¼å¼è½¬æ¢ |
| | | private const int Second = 1; |
| | | private const int Minute = 60 * Second; |
| | | private const int Hour = 60 * Minute; |
| | | private const int Day = 24 * Hour; |
| | | private const int Month = 30 * Day; |
| | | |
| | | /// <summary> |
| | | /// æ¶é´è½¬æ¢ |
| | | /// å°äº1天 æ¾ç¤º æ¶å |
| | | /// å°äºä¸å¹´ æ¾ç¤º ææ¥ |
| | | /// 大äºä¸å¹´ æ¾ç¤º å¹´ |
| | | /// </summary> |
| | | /// <param name="dateTime"></param> |
| | | /// <returns></returns> |
| | | public static string ToFriendlyDisplay(this DateTime dateTime) |
| | | { |
| | | var ts = DateTime.Now - dateTime; |
| | | var delta = ts.TotalSeconds; |
| | | if (delta < 24 * Hour) |
| | | { |
| | | //æ¾ç¤º æ¶:å |
| | | return dateTime.ToString("HH:mm"); |
| | | } |
| | | else if (delta < 12 * Month) |
| | | { |
| | | //æ¾ç¤º æ:æ¥ |
| | | return dateTime.ToString("MM/dd"); |
| | | } |
| | | else |
| | | { //æ¾ç¤º å¹´ |
| | | return dateTime.ToString("yyyy"); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// æ¶é´è½¬æ¢ |
| | | /// å°äº1天 æ¾ç¤º æ¶å |
| | | /// å°äºä¸å¹´ æ¾ç¤º ææ¥ |
| | | /// 大äºä¸å¹´ æ¾ç¤º å¹´ |
| | | /// </summary> |
| | | /// <param name="dateTime"></param> |
| | | /// <returns></returns> |
| | | public static string ToFriendlyDisplay(long unixTimeStamp) |
| | | { |
| | | return ToFriendlyDisplay(UnixToDateTimeMS(unixTimeStamp)); |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | |
| | |
| | | if (RemoteMqttClient.ConnectedHandler == null) |
| | | { |
| | | RemoteMqttClient.UseConnectedHandler(async (e) => { |
| | | if (DB_ResidenceData.Instance.HomeGateway.gatewayStatus) |
| | | if (DB_ResidenceData.Instance.HomeGateway.GatewayOnline) |
| | | { |
| | | Control.Ins.GatewayOnline = true; |
| | | } |
| | | else |
| | | { |
| | | //new System.Threading.Thread(() => { |
| | | // while(true) |
| | | // { |
| | | // System.Threading.Thread.Sleep(1000); |
| | | // if (DB_ResidenceData.Instance.HomeGateway.GatewayOnline) |
| | | // { |
| | | // Control.Ins.GatewayOnline = true; |
| | | // break; |
| | | // } |
| | | // } |
| | | //}) { IsBackground = true }.Start(); |
| | | } |
| | | IfNeedReadAllDeviceStatus = true; |
| | | Utlis.WriteLine($"============>Mqttè¿ç¨è¿æ¥æå"); |
| | |
| | | /// ç»å®è°è¯äººåæäº¤çä½å®
,ä¸ä¸ªä½å®
åªè½ç»å®ä¸æ¬¡ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public ResponsePackNew BindingResidence(string key) |
| | | public ResponsePackNew BindingResidence(string strUrl) |
| | | { |
| | | Dictionary<string, object> d = new Dictionary<string, object>(); |
| | | //d.Add("homeId", homeId); |
| | | d.Add("secretKey", key); |
| | | var requestJson = HttpUtil.GetSignRequestJson(d); |
| | | return HttpUtil.RequestHttpsPost(NewAPI.Api_Post_BindlingResidence, requestJson, HttpUtil.GlobalRequestHttpsHost); |
| | | try |
| | | { |
| | | var client = new RestSharp.RestClient(strUrl); |
| | | |
| | | var request = new RestSharp.RestRequest(RestSharp.Method.GET); |
| | | request.Timeout = 5 * 1000; |
| | | request.AddHeader("content-type", "application/json"); |
| | | request.AddHeader("Authorization", UserInfo.Current.LoginTokenString); |
| | | |
| | | var response = client.Execute(request); |
| | | if (response.StatusCode == HttpStatusCode.OK) |
| | | { |
| | | return Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePackNew>(response.Content); |
| | | } |
| | | else |
| | | { |
| | | return null; |
| | | } |
| | | } |
| | | catch |
| | | { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | #region 注åãç»å½é¨å |
| | |
| | | if (mHomeGatewayRes.Count > 0) |
| | | { |
| | | DB_ResidenceData.Instance.HomeGateway = mHomeGatewayRes[0]; |
| | | if(mHomeGatewayRes[0].gatewayStatus) |
| | | if(mHomeGatewayRes[0].gatewayStatus == "ON_LINE") |
| | | { |
| | | //DriverLayer.Control.Ins.IsRemote = true; |
| | | DriverLayer.Control.Ins.GatewayOnline = true; |
| | |
| | | if (GetType != "All") |
| | | { |
| | | d.Add("roomType", GetType); |
| | | d.Add("pageSize", "10000"); |
| | | } |
| | | var requestJson = HttpUtil.GetSignRequestJson(d); |
| | | var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetRoomList, requestJson); |
| | |
| | | /// ON_LINE(0,"å¨çº¿"), |
| | | /// OFF_LINE(1,"ä¸çº¿"),; |
| | | /// </summary> |
| | | public bool gatewayStatus; |
| | | public string gatewayStatus; |
| | | /// <summary> |
| | | /// ç½å
³æ¯å¦å¨çº¿ |
| | | /// </summary> |
| | | public bool GatewayOnline |
| | | { |
| | | get |
| | | { |
| | | if (gatewayStatus == "ON_LINE") |
| | | { |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | |
| | | ///// <summary> |
| | | ///// |
| | |
| | | if (_trait_temp.curValue.ToString() == "{}") |
| | | _trait_temp.curValue = 16; |
| | | } |
| | | //if (_trait_temp.curValue.ToString().Length > 3) |
| | | if (_trait_temp.curValue.ToString().Length > 3) |
| | | { |
| | | var vv = Convert.ToDouble(_trait_temp.curValue); |
| | | _trait_temp.curValue = Convert.ToInt32(vv); |
| | |
| | | if (_trait_IndoorTemp.curValue.ToString() == "{}") |
| | | _trait_IndoorTemp.curValue = 0; |
| | | } |
| | | //if (_trait_IndoorTemp.curValue.ToString().Length > 3) |
| | | if (_trait_IndoorTemp.curValue.ToString().Length > 3) |
| | | { |
| | | var vv = Convert.ToDouble(_trait_IndoorTemp.curValue); |
| | | _trait_IndoorTemp.curValue = Convert.ToInt32(vv); |
| | |
| | | _trait_IndoorTemp.curValue = 0; |
| | | } |
| | | } |
| | | //if (_trait_IndoorTemp.curValue.ToString().Length > 3) |
| | | if (_trait_IndoorTemp.curValue.ToString().Length > 3) |
| | | { |
| | | var vv = Convert.ToDouble(_trait_IndoorTemp.curValue); |
| | | _trait_IndoorTemp.curValue = Convert.ToInt32(vv); |
| | |
| | | if(_trait_temp.curValue.ToString() == "{}") |
| | | _trait_temp.curValue = 16; |
| | | } |
| | | //if (_trait_temp.curValue.ToString().Length > 3) |
| | | if (_trait_temp.curValue.ToString().Length > 3) |
| | | { |
| | | var vv = Convert.ToDouble(_trait_temp.curValue); |
| | | _trait_temp.curValue = Convert.ToInt32(vv); |
| | |
| | | /// <summary> |
| | | /// å®¶çµãæåº§ |
| | | /// </summary> |
| | | public const string ElectricSocket = "electrical.socket";
|
| | | public const string ElectricSocket = "electric.socket ";
|
| | | /// <summary> |
| | | /// å®¶çµãçµè§ |
| | | /// </summary> |
| | | public const string ElectricTV = "electrical.tv";
|
| | | public const string ElectricTV = "electric.tv";
|
| | | /// <summary> |
| | | /// å®¶çµã飿 |
| | | /// </summary> |
| | | public const string ElectricFan = "electrical.fan"; |
| | | public const string ElectricFan = "electric.fan"; |
| | | } |
| | | |
| | | } |
| | |
| | | <Import_RootNamespace>HDL_ON</Import_RootNamespace>
|
| | | </PropertyGroup>
|
| | | <ItemGroup>
|
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\BindingResidence\WellcomToHomeForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\MainPage.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)DAL\FileUtils.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Common\R.cs" />
|
| | |
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\3-Intelligence\Scene\SceneAddPage.cs" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <Folder Include="$(MSBuildThisFileDirectory)UI\" />
|
| | | <Folder Include="$(MSBuildThisFileDirectory)DAL\" />
|
| | | <Folder Include="$(MSBuildThisFileDirectory)DAL\Mqtt\" />
|
| | | <Folder Include="$(MSBuildThisFileDirectory)Common\" />
|
| | |
| | | <Folder Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\GetSupport\" />
|
| | | <Folder Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\RoomListManage\Transfer\" />
|
| | | <Folder Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\RoomListManage\AddRoom\" />
|
| | | <Folder Include="$(MSBuildThisFileDirectory)UI\BindingResidence\" />
|
| | | <Folder Include="$(MSBuildThisFileDirectory)Common\Utlis\" />
|
| | | </ItemGroup>
|
| | | </Project> |
| | |
| | | |
| | | btnAddNewResidence.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | Action<string> action = (str) => { |
| | | Application.RunOnMainThread(() => { |
| | | var pm = new DAL.Server.HttpServerRequest(); |
| | | pm.BindingResidence(str); |
| | | }); |
| | | }; |
| | | Scan.OpenScan((scanString) => |
| | | { |
| | | action(scanString); |
| | | //æ§è¡ç»å®ä½å®
|
| | | this.DoBindResidence(scanString); |
| | | }); |
| | | }; |
| | | |
| | |
| | | MainPage.GoLoginPage(UserInfo.Current); |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ§è¡ç»å®ä½å®
|
| | | /// </summary> |
| | | private void DoBindResidence(string scanString) |
| | | { |
| | | var pm = new DAL.Server.HttpServerRequest(); |
| | | var result = pm.BindingResidence(scanString); |
| | | if (result == null) { return; } |
| | | |
| | | if (result.Code == DAL.Server.StateCode.SUCCESS) |
| | | { |
| | | //跳转页é¢---- |
| | | MainPage.GoUserPage(); |
| | | //æ¾ç¤ºæ¬¢è¿åå®¶çå¼¹çªçé¢ |
| | | var form = new WellcomToHomeForm(); |
| | | form.ShowForm(); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¾ç¤ºäºç»´ç å·²ç»è¿æçå¼¹çª |
| | | /// </summary> |
| | | private void ShowQrCodeTimeOutView() |
| | | { |
| | | //æ´ä¸ªçé¢çç°è²èæ¯ |
| | | var frameBack = new Dialog(); |
| | | |
| | | //ä¸é´ç½è²åºå |
| | | var frameWite = new FrameLayout(); |
| | | frameWite.Y = Application.GetRealHeight(223); |
| | | frameWite.Height = Application.GetRealHeight(245); |
| | | frameWite.Width = Application.GetRealWidth(288); |
| | | frameWite.BackgroundColor = CSS.CSS_Color.MainBackgroundColor; |
| | | frameWite.Radius = (uint)Application.GetRealWidth(12); |
| | | frameWite.Gravity = Gravity.CenterHorizontal; |
| | | frameBack.AddChidren(frameWite); |
| | | |
| | | //Icon徿 |
| | | var picIcon = new Button(); |
| | | picIcon.Y = Application.GetRealHeight(152); |
| | | picIcon.Height = Application.GetRealWidth(160); |
| | | picIcon.Width = Application.GetRealWidth(160); |
| | | picIcon.Gravity = Gravity.CenterHorizontal; |
| | | picIcon.UnSelectedImagePath = "oRobot.png"; |
| | | frameBack.AddChidren(picIcon); |
| | | |
| | | //äºç»´ç 失æï¼è¯·éè¯ |
| | | var btnText = new Button(); |
| | | btnText.Y = Application.GetRealHeight(98); |
| | | btnText.Height = Application.GetRealHeight(24); |
| | | btnText.TextSize = 16; |
| | | btnText.TextAlignment = TextAlignment.Center; |
| | | btnText.TextColor = CSS.CSS_Color.FirstLevelTitleColor; |
| | | btnText.TextID = StringId.QRCodeIsInvalid; |
| | | frameWite.AddChidren(btnText); |
| | | |
| | | //åæ¶ |
| | | var btnCancel = new Button(); |
| | | btnCancel.X = Application.GetRealWidth(30); |
| | | btnCancel.Y = btnText.Bottom + Application.GetRealHeight(48); |
| | | btnCancel.Height = Application.GetRealHeight(44); |
| | | btnCancel.Width = Application.GetRealWidth(108); |
| | | btnCancel.TextSize = 16; |
| | | btnCancel.IsBold = true; |
| | | btnCancel.TextAlignment = TextAlignment.Center; |
| | | btnCancel.TextColor = CSS.CSS_Color.MainColor; |
| | | btnCancel.BackgroundColor = CSS.CSS_Color.MainBackgroundColor; |
| | | btnCancel.Radius = (uint)Application.GetRealHeight(22); |
| | | btnCancel.TextID = StringId.Cancel; |
| | | btnCancel.BorderWidth = 1; |
| | | btnCancel.BorderColor = CSS.CSS_Color.MainColor; |
| | | frameWite.AddChidren(btnCancel); |
| | | |
| | | btnCancel.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | frameBack.Close(); |
| | | }; |
| | | |
| | | //éè¯ |
| | | var btnRedo = new Button(); |
| | | btnRedo.Y = btnText.Bottom + Application.GetRealHeight(48); |
| | | btnRedo.Height = Application.GetRealHeight(44); |
| | | btnRedo.Width = Application.GetRealWidth(108); |
| | | btnRedo.TextSize = 16; |
| | | btnRedo.IsBold = true; |
| | | btnRedo.TextAlignment = TextAlignment.Center; |
| | | btnRedo.TextColor = CSS.CSS_Color.MainBackgroundColor; |
| | | btnRedo.BackgroundColor = CSS.CSS_Color.MainColor; |
| | | btnRedo.Radius = (uint)Application.GetRealHeight(22); |
| | | btnRedo.TextID = StringId.Retry; |
| | | frameWite.AddChidren(btnRedo); |
| | | btnRedo.X = frameWite.Width - btnRedo.Width - Application.GetRealWidth(30); |
| | | |
| | | btnRedo.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | Scan.OpenScan((scanString) => |
| | | { |
| | | frameBack.Close(); |
| | | //æ§è¡ç»å®ä½å®
|
| | | this.DoBindResidence(scanString); |
| | | }); |
| | | }; |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | using HDL_ON.UI.CSS; |
| | | using Shared; |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | | /// <summary> |
| | | /// 欢è¿åå®¶ççé¢ |
| | | /// </summary> |
| | | public class WellcomToHomeForm |
| | | { |
| | | /// <summary> |
| | | /// æ¾ç¤ºæ¬¢è¿åå®¶çå¼¹çªçé¢ |
| | | /// </summary> |
| | | public void ShowForm() |
| | | { |
| | | //æ´ä¸ªçé¢çç°è²èæ¯ |
| | | var frameBack = new Dialog(); |
| | | |
| | | //ä¸é´ç½è²åºå |
| | | var frameWite = new FrameLayout(); |
| | | frameWite.Y = Application.GetRealHeight(223); |
| | | frameWite.Height = Application.GetRealHeight(245); |
| | | frameWite.Width = Application.GetRealWidth(288); |
| | | frameWite.BackgroundColor = CSS.CSS_Color.MainBackgroundColor; |
| | | frameWite.Radius = (uint)Application.GetRealWidth(12); |
| | | frameWite.Gravity = Gravity.CenterHorizontal; |
| | | frameBack.AddChidren(frameWite); |
| | | |
| | | //Icon徿 |
| | | var picIcon = new Button(); |
| | | picIcon.Y = Application.GetRealHeight(152); |
| | | picIcon.Height = Application.GetRealWidth(160); |
| | | picIcon.Width = Application.GetRealWidth(160); |
| | | picIcon.Gravity = Gravity.CenterHorizontal; |
| | | picIcon.UnSelectedImagePath = "oRobot.png"; |
| | | frameBack.AddChidren(picIcon); |
| | | |
| | | //欢è¿åå®¶ |
| | | var btnText = new Button(); |
| | | btnText.Y = Application.GetRealHeight(98); |
| | | btnText.Height = Application.GetRealHeight(24); |
| | | btnText.TextSize = 16; |
| | | btnText.TextAlignment = TextAlignment.Center; |
| | | btnText.TextColor = CSS.CSS_Color.MainColor; |
| | | btnText.TextID = StringId.WellComBackHome; |
| | | frameWite.AddChidren(btnText); |
| | | |
| | | //确认 |
| | | var btnOk = new Button(); |
| | | btnOk.Y = btnText.Bottom + Application.GetRealHeight(48); |
| | | btnOk.Height = Application.GetRealHeight(44); |
| | | btnOk.Width = Application.GetRealWidth(220); |
| | | btnOk.TextSize = 16; |
| | | btnOk.IsBold = true; |
| | | btnOk.TextAlignment = TextAlignment.Center; |
| | | btnOk.TextColor = CSS.CSS_Color.MainBackgroundColor; |
| | | btnOk.BackgroundColor = CSS.CSS_Color.MainColor; |
| | | btnOk.Gravity = Gravity.CenterHorizontal; |
| | | btnOk.Radius = (uint)Application.GetRealHeight(22); |
| | | btnOk.TextID = StringId.Confirm; |
| | | frameWite.AddChidren(btnOk); |
| | | |
| | | btnOk.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | frameBack.Close(); |
| | | }; |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | // æ¥è¯¢æªè¯»æ¶æ¯å¹¶æ¾ç¤º |
| | | GetUnreadPushMessages(); |
| | | RegisterGetPushMessageAction(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | { |
| | | try |
| | | { |
| | | return Utlis.ToFriendlyDisplay(time); |
| | | return Utlis.UnixToDateTimeWithFormatMS(time, "HH:mm"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | /// </summary> |
| | | void RegisterGetPushMessageAction() |
| | | { |
| | | Action RegisterGetPushMessageAction = () => { |
| | | if (bodyView != null) |
| | | { |
| | | //HDLCommon.GetPushMessageAction = () => { |
| | | // if (bodyView != null) |
| | | // { |
| | | //Utlis.WriteLine("GetPushMessageAction Hæ¶å°æ¨é"); |
| | | GetUnreadPushMessages(); |
| | | } |
| | | }; |
| | | HDLCommon.GetPushMessageAction = RegisterGetPushMessageAction; |
| | | // GetUnreadPushMessages(); |
| | | // } |
| | | //}; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | void UnregisterGetPushMessageAction() |
| | | { |
| | | HDLCommon.GetPushMessageAction = null; |
| | | //HDLCommon.GetPushMessageAction = null; |
| | | } |
| | | |
| | | #endregion |
| | |
| | | /// </summary> |
| | | List<PushMessageInfo> PushMessageInfoList = new List<PushMessageInfo>(); |
| | | |
| | | /// <summary> |
| | | /// 页é¢å
³éæ¶é´ |
| | | /// </summary> |
| | | Action backAction; |
| | | |
| | | public override void RemoveFromParent() |
| | | { |
| | | UnregisterGetPushMessageAction(); |
| | | base.RemoveFromParent(); |
| | | backAction?.Invoke(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="backAction"></param> |
| | | public void LoadPage(Action backAction) |
| | | { |
| | | this.backAction = backAction; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.MessageCenter)).LoadTopView(); |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.MessageCenter)).LoadTopView(backAction); |
| | | |
| | | AddTopMenuView(); |
| | | AddMessageView(); |
| | |
| | | /// </summary> |
| | | void RegisterGetPushMessageAction() |
| | | { |
| | | HDLCommon.GetPushMessageAction = () => |
| | | { |
| | | if (bodyView != null) |
| | | { |
| | | //HDLCommon.GetPushMessageAction = () => |
| | | //{ |
| | | // if (bodyView != null) |
| | | // { |
| | | //Utlis.WriteLine("GetPushMessageAction Mæ¶å°æ¨é"); |
| | | GetPushMessageList(showMesType); |
| | | } |
| | | }; |
| | | // GetPushMessageList(showMesType); |
| | | // } |
| | | //}; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | void UnregisterGetPushMessageAction() |
| | | { |
| | | HDLCommon.GetPushMessageAction = null; |
| | | //HDLCommon.GetPushMessageAction = null; |
| | | } |
| | | |
| | | #if DEBUG |
| | |
| | | ReloadRoomName(); |
| | | }; |
| | | |
| | | |
| | | Action delAction = () => { |
| | | this.RemoveFromParent(); |
| | | deleteAction?.Invoke(); |
| | |
| | | sceneView.btnLine.X = Application.GetRealWidth(20); |
| | | sceneView.btnLine.Width = Application.GetRealWidth(303); |
| | | sceneView.btnNextIcon.X = Application.GetRealWidth(303); |
| | | sceneView.btnNextIcon.Width = Application.GetRealWidth(28); |
| | | sceneView.btnNextIcon.Height = Application.GetRealWidth(28); |
| | | sceneView.btnNextIcon.Width = Application.GetMinRealAverage(28); |
| | | sceneView.btnNextIcon.Height = Application.GetMinRealAverage(28); |
| | | sceneView.btnNextIcon.UnSelectedImagePath = "LogicIcon/weekoff.png"; |
| | | sceneView.btnNextIcon.SelectedImagePath = "LogicIcon/weekon.png"; |
| | | verticalRefresh.AddChidren(sceneView.FLayoutView()); |
| | |
| | | Height = Application.GetRealHeight(44 * 5), |
| | | }; |
| | | var roomList = LogicMethod.GetGatewayRoomList(Language.StringByID(StringId.allAreas)); |
| | | |
| | | if (roomList.Count > 5) |
| | | { |
| | | bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * 5); |
| | |
| | | /// <returns></returns> |
| | | public static List<HDL_ON.Entity.Room> GetGatewayRoomList(string name) |
| | | { |
| | | |
| | | List<Entity.Room> roomList = new List<Entity.Room>(); |
| | | Entity.Room room1 = new Entity.Room(); |
| | | room1.roomName = name;//é»è®¤ä¸ä¸ªæ¿é´å为:å
¨é¨åºå |
| | |
| | | var roomLists = GetGatewayRoomList(); |
| | | foreach (var room in roomLists) |
| | | { |
| | | var devlist = GetRoomDevice(room); |
| | | if (devlist.Count == 0) |
| | | { |
| | | //è¿æ»¤ææ²¡æè®¾å¤çæ¿é´; |
| | | continue; |
| | | } |
| | | roomList.Add(room); |
| | | } |
| | | |
| | | return roomList; |
| | | } |
| | | /// <summary> |
| | |
| | | addLogic.Show(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | //å¼å
³å¾æ çç¹å»äºä»¶ |
| | | logicView.btnSwitchIcon.MouseUpEventHandler += (sender1, e1) => |
| | | { |
| | | logicView.btnSwitchIcon.IsSelected = !logicView.btnSwitchIcon.IsSelected; |
| | |
| | | { |
| | | logicView.btnSwitchIcon.IsSelected = true; |
| | | currLogic.enable = "true"; |
| | | |
| | | |
| | | } |
| | | else |
| | | { |
| | | logicView.btnSwitchIcon.IsSelected = false; |
| | | currLogic.enable = "false"; |
| | | } |
| | | //Send.switchLogic(currLogic); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | try |
| | | { |
| | | //é»è¾ä½¿è½çå½ä»¤ |
| | | Send.switchLogic(currLogic); |
| | | |
| | | } |
| | | catch { } |
| | | |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }; |
| | | GetSelectIcon(logicView.frameLayout, currLogic); |
| | | //if (i==0)éåºæå |
| | |
| | | return weekTextName.TrimEnd(','); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è·åæ¯æçå符串 |
| | | /// </summary> |
| | |
| | | { |
| | | public class Send |
| | | { |
| | | ///// <summary> |
| | | ///// ä½å®
ID |
| | | ///// </summary> |
| | | //public static string homeId = Entity.DB_ResidenceData.residenceData.CurReginID; |
| | | ///// <summary> |
| | | ///// ç½å
³IDï¼ç§æ¡¡æç½å
³IDå´è¿åæ¯MACï¼ |
| | | ///// </summary> |
| | | //public static string gatewayId = DriverLayer.Control.Ins.GatewayId; |
| | | |
| | | //public static string homeId = UserInfo.Current.CurReginID; |
| | | |
| | | /// <summary> |
| | | /// ç½å
³ID(è·ååä¹ç½å
³ID) |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// ä½å®
ID |
| | | /// </summary> |
| | | public static string homeId |
| | | { |
| | | get |
| | | { |
| | | return Entity.DB_ResidenceData.Instance.CurrentRegion.RegionID; |
| | | } |
| | | } |
| | | public static string homeId = Entity.DB_ResidenceData.Instance.CurrentRegion.RegionID; |
| | | |
| | | |
| | | /// <summary> |
| | | /// è·åé»è¾IDå表 |
| | |
| | | /// <returns></returns> |
| | | public static ResponsePackNew RequestServerhomeId(object o, string api_Url, int mTimeout = 3) |
| | | { |
| | | |
| | | |
| | | |
| | | var requestJson = HttpUtil.GetSignRequestJson(o); |
| | | return HttpUtil.RequestHttpsPostFroHome(api_Url, requestJson, mTimeout); |
| | | |
| | |
| | | Button btnStartTimeText = new Button |
| | | { |
| | | TextSize = LogicView.TextSize.text12, |
| | | Width = Application.GetRealWidth(32 + 3+20), |
| | | Width = Application.GetRealWidth(32 + 3), |
| | | Height = Application.GetRealHeight(17), |
| | | TextColor = CSS.CSS_Color.textCancelColor, |
| | | Y = Application.GetRealHeight(17), |
| | | X = Application.GetRealWidth(260-20), |
| | | X = Application.GetRealWidth(260), |
| | | Tag = "0", |
| | | }; |
| | | startTimeView.frameLayout.AddChidren(btnStartTimeText); |
| | |
| | | Button btnEndTimeText = new Button |
| | | { |
| | | TextSize = LogicView.TextSize.text12, |
| | | Width = Application.GetRealWidth(32 + 3+20), |
| | | Width = Application.GetRealWidth(32 + 3), |
| | | Height = Application.GetRealHeight(17), |
| | | TextColor = CSS.CSS_Color.textCancelColor, |
| | | Y = Application.GetRealHeight(17), |
| | | X = Application.GetRealWidth(260-20), |
| | | X = Application.GetRealWidth(260), |
| | | Tag = "0", |
| | | }; |
| | | endTimeView.frameLayout.AddChidren(btnEndTimeText); |
| | |
| | | }; |
| | | bodyView.AddChidren(topView); |
| | | |
| | | if (DB_ResidenceData.Instance.GatewayType == 0 || DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) |
| | | if (DB_ResidenceData.Instance.GatewayType == 0) |
| | | { |
| | | btnSceneTilte = new Button() |
| | | { |
| | |
| | | }; |
| | | topView.AddChidren(btnSceneTilte); |
| | | btnAutomationTitle = new Button(); |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | btnAddSceneBg.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | if(!DB_ResidenceData.Instance.HomeGateway.gatewayStatus) |
| | | if(!DB_ResidenceData.Instance.HomeGateway.GatewayOnline) |
| | | { |
| | | new PublicAssmebly().TipMsgAutoClose(Language.StringByID(StringId.GatewayOfflineCannotCreateScene), true); |
| | | return; |
| | |
| | | TipDivMsg(Language.StringByID(StringId.PlsEntryAccount)); |
| | | return; |
| | | } |
| | | BindMember(memberAccount); |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ç»å®è´¦å· |
| | | /// </summary> |
| | | /// <param name="memberAccount"></param> |
| | | void BindMember(string memberAccount) |
| | | { |
| | | var waitPage = new Loading(); |
| | | bodyView.AddChidren(waitPage); |
| | | waitPage.Start(Language.StringByID(StringId.PleaseWait)); |
| | | |
| | | new System.Threading.Thread(() => |
| | | { |
| | | try |
| | | { |
| | | var result = new HttpServerRequest().BindResidenceMemberAccount(memberAccount, memberAccount); |
| | | if (result.Code == StateCode.SUCCESS) |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | backAction?.Invoke(); |
| | | this.RemoveFromParent(); |
| | | var page = new OperationResultDisPalyPage(); |
| | | page.Show(); |
| | | page.LoadPage(true, Language.StringByID(StringId.AddMember), Language.StringByID(StringId.WelcomeNewMmember), ""); |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | IMessageCommon.Current.ShowErrorInfoAlter(result.Code); |
| | | } |
| | | |
| | | } |
| | | catch { } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (waitPage != null) |
| | | { |
| | | waitPage.RemoveFromParent(); |
| | | waitPage = null; |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | //switch (result.Code) |
| | | //{ |
| | | // //(1)Success åè°ç¨æ¤æ¥å£æå |
| | | // case "Success": |
| | | // backAction?.Invoke(); |
| | | // this.RemoveFromParent(); |
| | | // var page = new OperationResultDisPalyPage(); |
| | | // page.Show(); |
| | | // page.LoadPage(true, Language.StringByID(StringId.AddMember), Language.StringByID(StringId.WelcomeNewMmember), ""); |
| | | // break; |
| | | // //(2)ParameterOrEmpty æä¾çåæ°é误ï¼è¯¦æ
è§ErrorInfoåæ®µ |
| | | // case "ParameterOrEmpty": |
| | | // //(3)NoLogin,åååºå段ä¸[ErrorInfo]为é误信æ¯ä¸º[æ æç»å½Token!] |
| | | // case "NoLogin": |
| | | // TipDivMsg(Language.StringByID(StringId.DataExceptionPleaseTryAgain)); |
| | | // break; |
| | | // //(4)AccountNoExists åè´¦å·æªæ³¨åï¼è¯·ç»å®å·²æ³¨åçåè´¦å·! |
| | | // case "AccountNoExists": |
| | | // TipDivMsg(Language.StringByID(StringId.FailedToAddTheMemberAccountIsNotRegistered)); |
| | | // break; |
| | | // //(5)SameAccount,ä¸è½æ·»å èªå·±ä¸ºåè´¦å·! |
| | | // case "SameAccount": |
| | | // TipDivMsg(Language.StringByID(StringId.FailedToAddUnableToAddYourself)); |
| | | // break; |
| | | // //(6)NoExist ç¨æ·ä¸å卿¤ä½å®
|
| | | // case "NoExist": |
| | | // TipDivMsg(Language.StringByID(StringId.ThisHomeDoesNotExistForTheUser)); |
| | | // break; |
| | | // //(7)Exist è´¦å·å·²å卿¤ä½å®
|
| | | // case "Exist": |
| | | // TipDivMsg(Language.StringByID(StringId.MemberAccountHasBeenAddedAndCannotBeAddedAgain)); |
| | | // break; |
| | | // //(8)Fail æä½å¤±è´¥ |
| | | // case "Fail": |
| | | // TipDivMsg(Language.StringByID(StringId.OperationFailed)); |
| | | // break; |
| | | // //(9)BeRestrict æéä¸è¶³ |
| | | // case "BeRestrict": |
| | | // TipDivMsg(Language.StringByID(StringId.AddFailedInsufficientPermissions)); |
| | | // break; |
| | | // //(10)NoAddMainAccount ä¸è½ç»å®ä¸»è´¦å· |
| | | // case "NoAddMainAccount": |
| | | |
| | | // break; |
| | | //} |
| | | }; |
| | | } |
| | | |
| | | |
| | | void OpenScen(Action<string> action) |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using HDL_ON.UI.CSS; |
| | | using Shared; |
| | | |
| | |
| | | // Radius = (uint)Application.GetMinRealAverage(30), |
| | | //}; |
| | | //backView.AddChidren(headImage2); |
| | | |
| | | //å¼å¯æ£æµä½å®
æ¯å¦å·²ç»æ·»å äºççº¿ç¨ |
| | | this.StartCheckResidenceThread(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¼å¯æ£æµä½å®
æ¯å¦å·²ç»æ·»å äºççº¿ç¨ |
| | | /// </summary> |
| | | private void StartCheckResidenceThread() |
| | | { |
| | | //è·åä½å®
å表çåæ° |
| | | var requestJson = DAL.Server.HttpUtil.GetSignRequestJson(new DAL.Server.GetHomeListObj() { homeType = HomeTypeEnum.ALL.ToString() }); |
| | | |
| | | new System.Threading.Thread(() => |
| | | { |
| | | while (this.Parent != null) |
| | | { |
| | | System.Threading.Thread.Sleep(4000); |
| | | |
| | | //访é®äºç«¯è·åå表 |
| | | var resultObj = DAL.Server.HttpUtil.RequestHttpsPost(DAL.Server.NewAPI.API_POST_Gethomepager, requestJson); |
| | | if (resultObj.Code == DAL.Server.StateCode.SUCCESS) |
| | | { |
| | | var homeList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<RegionInfoResNew>>(resultObj.Data.ToString()); |
| | | if (homeList == null || homeList.Count == 0) |
| | | { |
| | | //å¦æè¿æ²¡æä½å®
çè¯,ç»§ç»ä¸ä¸æ¬¡æ£æµ |
| | | continue; |
| | | } |
| | | //è°ç¨Onåæ¥çæ¹æ³,å·æ°ä½å®
å表åå
¶ç¼å |
| | | var pm = new DAL.Server.HttpServerRequest(); |
| | | pm.GetHomePager(); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //跳转页é¢---- |
| | | MainPage.GoUserPage(); |
| | | //æ¾ç¤ºæ¬¢è¿åå®¶çå¼¹çªçé¢ |
| | | var form = new WellcomToHomeForm(); |
| | | form.ShowForm(); |
| | | }); |
| | | break; |
| | | } |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | } |
| | | } |
| | |
| | | return; |
| | | } |
| | | } |
| | | var waitPage = new Loading(); |
| | | waitPage.Start(); |
| | | new Thread(() => |
| | | { |
| | | try |
| | | { |
| | | var addResult = SpatialInfo.CurrentSpatial.AddRoom(room, out room);//æ£æ¥roomæ¯å¦ä¸ºäºç«¯è¿åçææ°æ°æ® |
| | | if (addResult == StateCode.SUCCESS) |
| | | { |
| | |
| | | room.GetRoomFunctions(true); |
| | | } |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | backAction(room); |
| | | RemoveFromParent(); |
| | | }); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log($"æ·»å æ¿é´å¤±è´¥msg:{ex.Message}"); |
| | | } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | waitPage.Hide(); |
| | | }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }; |
| | | } |
| | | |
| | |
| | | { |
| | | Action action = () => |
| | | { |
| | | var waitPage = new Loading(); |
| | | waitPage.Start(); |
| | | new Thread(() => |
| | | { |
| | | try |
| | | { |
| | | var delResult = SpatialInfo.CurrentSpatial.DelRoom(room); |
| | | if (delResult == StateCode.SUCCESS) |
| | | { |
| | |
| | | f.roomIds.Remove(room.roomId); |
| | | } |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //å é¤äºä»¶åè° |
| | | this.deleteAction?.Invoke(); |
| | | this.RemoveFromParent(); |
| | | }); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log($"æ·»å æ¿é´å¤±è´¥msg:{ex.Message}"); |
| | | } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | waitPage.Hide(); |
| | | }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }; |
| | | new PublicAssmebly().TipOptionMsg(StringId.Tip, StringId.DeleteRoomTip, action); |
| | | }; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ¾ç¤ºèæ¯å¾éæ©é项 |
| | |
| | | //è¾å
¥ç»å½å¯ç éªè¯ |
| | | Action<string> action = (pw) => |
| | | { |
| | | AuthenticationByLoginPassword(pw, optionType); |
| | | //var resultObj = new HttpServerRequest().LoginByPassword(UserInfo.Current.AccountString, pw); |
| | | //if (resultObj.Code == StateCode.SUCCESS) |
| | | //{ |
| | | // PasswordInputPassed(optionType); |
| | | //} |
| | | //else |
| | | //{ |
| | | // Application.RunOnMainThread(() => |
| | | // { |
| | | // Utlis.ShowTip(Language.StringByID(StringId.AuthenticationFailedPasswordError)); |
| | | // }); |
| | | //} |
| | | |
| | | }; |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.EnterLoginPasswordVerification, "", action, StringId.PlsEntryPassword, 0, new System.Collections.Generic.List<string>(), true); |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ç»å½å¯ç éªè¯ |
| | | /// </summary> |
| | | /// <param name="pw"></param> |
| | | /// <param name="optionType"></param> |
| | | void AuthenticationByLoginPassword(string pw, string optionType) |
| | | { |
| | | var waitPage = new Loading(); |
| | | bodyView.AddChidren(waitPage); |
| | | waitPage.Start(Language.StringByID(StringId.PleaseWait)); |
| | | |
| | | new System.Threading.Thread(() => |
| | | { |
| | | try |
| | | { |
| | | var resultObj = new HttpServerRequest().LoginByPassword(UserInfo.Current.AccountString, pw); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (resultObj.Code == StateCode.SUCCESS) |
| | | { |
| | | //UserInfo.Current.appUnlockPasswrod = ""; |
| | | //UserInfo.Current.appUnlockType = new System.Collections.Generic.List<string>(); |
| | | //UserInfo.Current.SaveUserInfo(); |
| | | //this.RemoveFromParent(); |
| | | //backAction(); |
| | | PasswordInputPassed(optionType); |
| | | } |
| | | else |
| | | { |
| | | Utlis.ShowTip(Language.StringByID(StringId.AuthenticationFailedPasswordError)); |
| | | } |
| | | }); |
| | | } |
| | | catch { } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (waitPage != null) |
| | | { |
| | | waitPage.RemoveFromParent(); |
| | | waitPage = null; |
| | | } |
| | | Utlis.ShowTip(Language.StringByID(StringId.AuthenticationFailedPasswordError)); |
| | | }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | |
| | | }; |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.EnterLoginPasswordVerification, "", action, StringId.PlsEntryPassword, 0, new System.Collections.Generic.List<string>(), true); |
| | | }; |
| | | } |
| | | } |
| | | } |
| | |
| | | //è¾å
¥ç»å½å¯ç éªè¯ |
| | | Action<string> action = (pw) => |
| | | { |
| | | AuthenticationByLoginPassword(pw, optionType); |
| | | //var resultObj = new HttpServerRequest().LoginByPassword(UserInfo.Current.AccountString, pw); |
| | | //if (resultObj.Code == StateCode.SUCCESS) |
| | | //{ |
| | | // PasswordInputPassed(optionType); |
| | | //} |
| | | //else |
| | | //{ |
| | | // Application.RunOnMainThread(() => |
| | | // { |
| | | // Utlis.ShowTip(Language.StringByID(StringId.AuthenticationFailedPasswordError)); |
| | | // }); |
| | | var resultObj = new HttpServerRequest().LoginByPassword(UserInfo.Current.AccountString, pw); |
| | | if (resultObj.Code.ToUpper() == StateCode.SUCCESS) |
| | | { |
| | | //UserInfo.Current.appUnlockPasswrod = ""; |
| | | //UserInfo.Current.appUnlockType = new System.Collections.Generic.List<string>(); |
| | | //UserInfo.Current.SaveUserInfo(); |
| | | //this.RemoveFromParent(); |
| | | //backAction(); |
| | | |
| | | //} |
| | | PasswordInputPassed(optionType); |
| | | } |
| | | else |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | Utlis.ShowTip(Language.StringByID(StringId.AuthenticationFailedPasswordError)); |
| | | }); |
| | | |
| | | } |
| | | |
| | | }; |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.EnterLoginPasswordVerification, "", action, StringId.PlsEntryPassword, 0, new System.Collections.Generic.List<string>(), true); |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ç»å½å¯ç éªè¯ |
| | | /// </summary> |
| | | /// <param name="pw"></param> |
| | | /// <param name="optionType"></param> |
| | | void AuthenticationByLoginPassword(string pw, string optionType) |
| | | { |
| | | var waitPage = new Loading(); |
| | | bodyView.AddChidren(waitPage); |
| | | waitPage.Start(Language.StringByID(StringId.PleaseWait)); |
| | | |
| | | new System.Threading.Thread(() => |
| | | { |
| | | try |
| | | { |
| | | var resultObj = new HttpServerRequest().LoginByPassword(UserInfo.Current.AccountString, pw); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (resultObj.Code == StateCode.SUCCESS) |
| | | { |
| | | PasswordInputPassed(optionType); |
| | | } |
| | | else |
| | | { |
| | | Utlis.ShowTip(Language.StringByID(StringId.AuthenticationFailedPasswordError)); |
| | | } |
| | | }); |
| | | } |
| | | catch { } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (waitPage != null) |
| | | { |
| | | waitPage.RemoveFromParent(); |
| | | waitPage = null; |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | Button btnStartupBg; |
| | | |
| | | #region F3é¶æ®µ |
| | | ///// <summary> |
| | | ///// 设置å®é²é项æç¤º |
| | | ///// </summary> |
| | | //Button btnSecuritySelectionTip; |
| | | ///// <summary> |
| | | ///// 设置å®é²é项éä¸å¾æ |
| | | ///// </summary> |
| | | //Button btnSecuritySelectionIcon; |
| | | ///// <summary> |
| | | ///// 设置å®é²éé¡¹èæ¯ |
| | | ///// </summary> |
| | | //Button btnSecurityBg; |
| | | |
| | | /// <summary> |
| | | /// 设置å®é²é项æç¤º |
| | | /// </summary> |
| | | Button btnSecuritySelectionTip; |
| | | /// <summary> |
| | | /// 设置å®é²é项éä¸å¾æ |
| | | /// </summary> |
| | | Button btnSecuritySelectionIcon; |
| | | /// <summary> |
| | | /// 设置å®é²éé¡¹èæ¯ |
| | | /// </summary> |
| | | Button btnSecurityBg; |
| | | |
| | | |
| | | ///// <summary> |
| | | ///// 设置é¨éé项æç¤º |
| | | ///// </summary> |
| | | //Button btnDoorlockSelectionTip; |
| | | ///// <summary> |
| | | ///// 设置é¨éé项éä¸å¾æ |
| | | ///// </summary> |
| | | //Button btnDoorlockSelectionIcon; |
| | | ///// <summary> |
| | | ///// 设置é¨ééé¡¹èæ¯ |
| | | ///// </summary> |
| | | //Button btnDoorlockBg; |
| | | #endregion |
| | | /// <summary> |
| | | /// 设置é¨éé项æç¤º |
| | | /// </summary> |
| | | Button btnDoorlockSelectionTip; |
| | | /// <summary> |
| | | /// 设置é¨éé项éä¸å¾æ |
| | | /// </summary> |
| | | Button btnDoorlockSelectionIcon; |
| | | /// <summary> |
| | | /// 设置é¨ééé¡¹èæ¯ |
| | | /// </summary> |
| | | Button btnDoorlockBg; |
| | | |
| | | /// <summary> |
| | | /// å¯ç 使ç¨éæ©ç详ç»å
容æç¤º |
| | |
| | | startupDiv.AddChidren(btnStartupSelectionTip); |
| | | #endregion |
| | | |
| | | #region F3é¶æ®µ |
| | | |
| | | #region Security |
| | | //optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); |
| | | optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); |
| | | |
| | | //FrameLayout securityDiv = new FrameLayout() |
| | | //{ |
| | | // Width = Application.GetRealWidth(94), |
| | | //}; |
| | | //optionView.AddChidren(securityDiv); |
| | | FrameLayout securityDiv = new FrameLayout() |
| | | { |
| | | Width = Application.GetRealWidth(94), |
| | | }; |
| | | optionView.AddChidren(securityDiv); |
| | | |
| | | //btnSecurityBg = new Button() |
| | | //{ |
| | | // Height = Application.GetRealWidth(174), |
| | | // UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/3.png", |
| | | // SelectedImagePath = "PersonalCenter/AppUnlockSetting/3On.png" |
| | | //}; |
| | | //securityDiv.AddChidren(btnSecurityBg); |
| | | btnSecurityBg = new Button() |
| | | { |
| | | Height = Application.GetRealWidth(174), |
| | | UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/3.png", |
| | | SelectedImagePath = "PersonalCenter/AppUnlockSetting/3On.png" |
| | | }; |
| | | securityDiv.AddChidren(btnSecurityBg); |
| | | |
| | | //btnSecuritySelectionIcon = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(5), |
| | | // Y = Application.GetRealWidth(174), |
| | | // Width = Application.GetRealWidth(30), |
| | | // Height = Application.GetRealWidth(30), |
| | | // UnSelectedImagePath = "Public/ChooseIcon.png", |
| | | // SelectedImagePath = "Public/ChooseOnIcon.png", |
| | | //}; |
| | | //securityDiv.AddChidren(btnSecuritySelectionIcon); |
| | | btnSecuritySelectionIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(5), |
| | | Y = Application.GetRealWidth(174), |
| | | Width = Application.GetRealWidth(30), |
| | | Height = Application.GetRealWidth(30), |
| | | UnSelectedImagePath = "Public/ChooseIcon.png", |
| | | SelectedImagePath = "Public/ChooseOnIcon.png", |
| | | }; |
| | | securityDiv.AddChidren(btnSecuritySelectionIcon); |
| | | |
| | | //btnSecuritySelectionTip = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(30), |
| | | // Y = Application.GetRealWidth(174), |
| | | // Width = Application.GetRealWidth(74), |
| | | // Height = Application.GetRealWidth(30), |
| | | // TextID = StringId.DefenseAndUndefense, |
| | | // TextAlignment = TextAlignment.CenterLeft, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // SelectedTextColor = CSS_Color.MainColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel |
| | | //}; |
| | | //securityDiv.AddChidren(btnSecuritySelectionTip); |
| | | btnSecuritySelectionTip = new Button() |
| | | { |
| | | X = Application.GetRealWidth(30), |
| | | Y = Application.GetRealWidth(174), |
| | | Width = Application.GetRealWidth(74), |
| | | Height = Application.GetRealWidth(30), |
| | | TextID = StringId.DefenseAndUndefense, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel |
| | | }; |
| | | securityDiv.AddChidren(btnSecuritySelectionTip); |
| | | #endregion |
| | | |
| | | |
| | | #region Doorlock |
| | | //optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); |
| | | optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); |
| | | |
| | | //FrameLayout doorlockDiv = new FrameLayout() |
| | | //{ |
| | | // Width = Application.GetRealWidth(94), |
| | | //}; |
| | | //optionView.AddChidren(doorlockDiv); |
| | | FrameLayout doorlockDiv = new FrameLayout() |
| | | { |
| | | Width = Application.GetRealWidth(94), |
| | | }; |
| | | optionView.AddChidren(doorlockDiv); |
| | | |
| | | //btnDoorlockBg = new Button() |
| | | //{ |
| | | // Height = Application.GetRealWidth(174), |
| | | // UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/4.png", |
| | | // SelectedImagePath = "PersonalCenter/AppUnlockSetting/4On.png" |
| | | //}; |
| | | //doorlockDiv.AddChidren(btnDoorlockBg); |
| | | btnDoorlockBg = new Button() |
| | | { |
| | | Height = Application.GetRealWidth(174), |
| | | UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/4.png", |
| | | SelectedImagePath = "PersonalCenter/AppUnlockSetting/4On.png" |
| | | }; |
| | | doorlockDiv.AddChidren(btnDoorlockBg); |
| | | |
| | | //btnDoorlockSelectionIcon = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(5), |
| | | // Y = Application.GetRealWidth(174), |
| | | // Width = Application.GetRealWidth(30), |
| | | // Height = Application.GetRealWidth(30), |
| | | // UnSelectedImagePath = "Public/ChooseIcon.png", |
| | | // SelectedImagePath = "Public/ChooseOnIcon.png", |
| | | //}; |
| | | //doorlockDiv.AddChidren(btnDoorlockSelectionIcon); |
| | | btnDoorlockSelectionIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(5), |
| | | Y = Application.GetRealWidth(174), |
| | | Width = Application.GetRealWidth(30), |
| | | Height = Application.GetRealWidth(30), |
| | | UnSelectedImagePath = "Public/ChooseIcon.png", |
| | | SelectedImagePath = "Public/ChooseOnIcon.png", |
| | | }; |
| | | doorlockDiv.AddChidren(btnDoorlockSelectionIcon); |
| | | |
| | | //btnDoorlockSelectionTip = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(30), |
| | | // Y = Application.GetRealWidth(174), |
| | | // Width = Application.GetRealWidth(74), |
| | | // Height = Application.GetRealWidth(30), |
| | | // TextID = StringId.RemoteUnlocking, |
| | | // TextAlignment = TextAlignment.CenterLeft, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // SelectedTextColor = CSS_Color.MainColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel |
| | | //}; |
| | | //doorlockDiv.AddChidren(btnDoorlockSelectionTip); |
| | | #endregion |
| | | btnDoorlockSelectionTip = new Button() |
| | | { |
| | | X = Application.GetRealWidth(30), |
| | | Y = Application.GetRealWidth(174), |
| | | Width = Application.GetRealWidth(74), |
| | | Height = Application.GetRealWidth(30), |
| | | TextID = StringId.RemoteUnlocking, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel |
| | | }; |
| | | doorlockDiv.AddChidren(btnDoorlockSelectionTip); |
| | | #endregion |
| | | |
| | | optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); |
| | |
| | | { |
| | | btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = true; |
| | | btnStartupBg.IsSelected = btnStartupSelectionIcon.IsSelected = btnStartupSelectionTip.IsSelected = false; |
| | | #region F3é¶æ®µ |
| | | //btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = false; |
| | | //btnDoorlockBg.IsSelected = btnDoorlockSelectionIcon.IsSelected = btnDoorlockSelectionTip.IsSelected = false; |
| | | #endregion |
| | | btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = false; |
| | | btnDoorlockBg.IsSelected = btnDoorlockSelectionIcon.IsSelected = btnDoorlockSelectionTip.IsSelected = false; |
| | | |
| | | btnTipMsg.TextID = StringId.UnprotectedTipMsg; |
| | | |
| | |
| | | btnStartupSelectionIcon.MouseUpEventHandler = eventHandler2; |
| | | btnStartupSelectionTip.MouseUpEventHandler = eventHandler2; |
| | | |
| | | #region F3é¶æ®µ |
| | | //EventHandler<MouseEventArgs> eventHandler3 = (sender, e) => |
| | | //{ |
| | | // bool result = !btnSecurityBg.IsSelected; |
| | | // if (!result) |
| | | // { |
| | | // //妿åªå©å¸é²/æ¤é²ä¸ç§ ä¸è½åæ¶å¸é²/æ¤é² |
| | | // if (!CheckIfCanDeselect("2")) return; |
| | | // } |
| | | // btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = result; |
| | | // btnTipMsg.Text = Language.StringByID(StringId.DefenseAndUndefenseTipMsg); |
| | | // if (result) |
| | | // { |
| | | // btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = false; |
| | | // if (!UserInfo.Current.appUnlockPage.Contains("2")) |
| | | // { |
| | | // UserInfo.Current.appUnlockPage.Add("2"); |
| | | // if (UserInfo.Current.appUnlockPasswrod != "") |
| | | // UserInfo.Current.SaveUserInfo(); |
| | | // } |
| | | // unlockOptionView.Visible = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // if (UserInfo.Current.appUnlockPage.Contains("2")) |
| | | // { |
| | | // UserInfo.Current.appUnlockPage.Remove("2"); |
| | | // } |
| | | // if (UserInfo.Current.appUnlockPage.Count == 0) |
| | | // { |
| | | // btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = result; |
| | | // btnTipMsg.TextID = StringId.UnprotectedTipMsg; |
| | | // UserInfo.Current.appUnlockPasswrod = ""; |
| | | // unlockOptionView.Visible = false; |
| | | // refreshAction(); |
| | | // } |
| | | // UserInfo.Current.SaveUserInfo(); |
| | | // } |
| | | //}; |
| | | //btnSecurityBg.MouseUpEventHandler = eventHandler3; |
| | | //btnSecuritySelectionIcon.MouseUpEventHandler = eventHandler3; |
| | | //btnSecuritySelectionTip.MouseUpEventHandler = eventHandler3; |
| | | EventHandler<MouseEventArgs> eventHandler3 = (sender, e) => |
| | | { |
| | | bool result = !btnSecurityBg.IsSelected; |
| | | if (!result) |
| | | { |
| | | //妿åªå©å¸é²/æ¤é²ä¸ç§ ä¸è½åæ¶å¸é²/æ¤é² |
| | | if (!CheckIfCanDeselect("2")) return; |
| | | } |
| | | |
| | | //EventHandler<MouseEventArgs> eventHandler4 = (sender, e) => |
| | | //{ |
| | | // bool result = !btnDoorlockBg.IsSelected; |
| | | // if (!result) |
| | | // { |
| | | // //妿åªå©è¿ç¨å¼éä¸è½åæ¶è¿ç¨å¼é |
| | | // if (!CheckIfCanDeselect("3")) return; |
| | | // } |
| | | btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = result; |
| | | |
| | | // btnDoorlockBg.IsSelected = btnDoorlockSelectionIcon.IsSelected = btnDoorlockSelectionTip.IsSelected = result; |
| | | btnTipMsg.Text = Language.StringByID(StringId.DefenseAndUndefenseTipMsg); |
| | | |
| | | // btnTipMsg.Text = Language.StringByID(StringId.RemoteUnlockingTipMsg); |
| | | // if (result) |
| | | // { |
| | | // btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = false; |
| | | // if (!UserInfo.Current.appUnlockPage.Contains("3")) |
| | | // { |
| | | // UserInfo.Current.appUnlockPage.Add("3"); |
| | | // if (UserInfo.Current.appUnlockPasswrod != "") |
| | | // UserInfo.Current.SaveUserInfo(); |
| | | // } |
| | | // unlockOptionView.Visible = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // if (UserInfo.Current.appUnlockPage.Contains("3")) |
| | | // { |
| | | // UserInfo.Current.appUnlockPage.Remove("3"); |
| | | // } |
| | | // if (UserInfo.Current.appUnlockPage.Count == 0) |
| | | // { |
| | | // btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = true; |
| | | // btnTipMsg.TextID = StringId.UnprotectedTipMsg; |
| | | // UserInfo.Current.appUnlockPasswrod = ""; |
| | | // unlockOptionView.Visible = false; |
| | | // refreshAction(); |
| | | // } |
| | | // UserInfo.Current.SaveUserInfo(); |
| | | // } |
| | | //}; |
| | | //btnDoorlockBg.MouseUpEventHandler = eventHandler4; |
| | | //btnDoorlockSelectionIcon.MouseUpEventHandler = eventHandler4; |
| | | //btnDoorlockSelectionTip.MouseUpEventHandler = eventHandler4; |
| | | #endregion |
| | | if (result) |
| | | { |
| | | btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = false; |
| | | if (!UserInfo.Current.appUnlockPage.Contains("2")) |
| | | { |
| | | UserInfo.Current.appUnlockPage.Add("2"); |
| | | if (UserInfo.Current.appUnlockPasswrod != "") |
| | | UserInfo.Current.SaveUserInfo(); |
| | | } |
| | | unlockOptionView.Visible = true; |
| | | } |
| | | else |
| | | { |
| | | if (UserInfo.Current.appUnlockPage.Contains("2")) |
| | | { |
| | | UserInfo.Current.appUnlockPage.Remove("2"); |
| | | } |
| | | if (UserInfo.Current.appUnlockPage.Count == 0) |
| | | { |
| | | btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = result; |
| | | btnTipMsg.TextID = StringId.UnprotectedTipMsg; |
| | | UserInfo.Current.appUnlockPasswrod = ""; |
| | | unlockOptionView.Visible = false; |
| | | refreshAction(); |
| | | } |
| | | UserInfo.Current.SaveUserInfo(); |
| | | } |
| | | }; |
| | | btnSecurityBg.MouseUpEventHandler = eventHandler3; |
| | | btnSecuritySelectionIcon.MouseUpEventHandler = eventHandler3; |
| | | btnSecuritySelectionTip.MouseUpEventHandler = eventHandler3; |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler4 = (sender, e) => |
| | | { |
| | | bool result = !btnDoorlockBg.IsSelected; |
| | | if (!result) |
| | | { |
| | | //妿åªå©è¿ç¨å¼éä¸è½åæ¶è¿ç¨å¼é |
| | | if (!CheckIfCanDeselect("3")) return; |
| | | } |
| | | |
| | | btnDoorlockBg.IsSelected = btnDoorlockSelectionIcon.IsSelected = btnDoorlockSelectionTip.IsSelected = result; |
| | | |
| | | btnTipMsg.Text = Language.StringByID(StringId.RemoteUnlockingTipMsg); |
| | | if (result) |
| | | { |
| | | btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = false; |
| | | if (!UserInfo.Current.appUnlockPage.Contains("3")) |
| | | { |
| | | UserInfo.Current.appUnlockPage.Add("3"); |
| | | if (UserInfo.Current.appUnlockPasswrod != "") |
| | | UserInfo.Current.SaveUserInfo(); |
| | | } |
| | | unlockOptionView.Visible = true; |
| | | } |
| | | else |
| | | { |
| | | if (UserInfo.Current.appUnlockPage.Contains("3")) |
| | | { |
| | | UserInfo.Current.appUnlockPage.Remove("3"); |
| | | } |
| | | if (UserInfo.Current.appUnlockPage.Count == 0) |
| | | { |
| | | btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = true; |
| | | btnTipMsg.TextID = StringId.UnprotectedTipMsg; |
| | | UserInfo.Current.appUnlockPasswrod = ""; |
| | | unlockOptionView.Visible = false; |
| | | refreshAction(); |
| | | } |
| | | UserInfo.Current.SaveUserInfo(); |
| | | } |
| | | }; |
| | | btnDoorlockBg.MouseUpEventHandler = eventHandler4; |
| | | btnDoorlockSelectionIcon.MouseUpEventHandler = eventHandler4; |
| | | btnDoorlockSelectionTip.MouseUpEventHandler = eventHandler4; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | btnStartupBg.IsSelected = btnStartupSelectionIcon.IsSelected = btnStartupSelectionTip.IsSelected = true; |
| | | btnTipMsg.Text = Language.StringByID(StringId.AtStartupTipMsg); |
| | | } |
| | | #region F3é¶æ®µ |
| | | //if (UserInfo.Current.appUnlockPage.Contains("2")) |
| | | //{ |
| | | // btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = true; |
| | | // btnTipMsg.Text = Language.StringByID(StringId.DefenseAndUndefenseTipMsg); |
| | | //} |
| | | //if (UserInfo.Current.appUnlockPage.Contains("3")) |
| | | //{ |
| | | // btnDoorlockBg.IsSelected = btnDoorlockSelectionIcon.IsSelected = btnDoorlockSelectionTip.IsSelected = true; |
| | | // btnTipMsg.Text = Language.StringByID(StringId.RemoteUnlockingTipMsg); |
| | | //} |
| | | #endregion |
| | | if (UserInfo.Current.appUnlockPage.Contains("2")) |
| | | { |
| | | btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = true; |
| | | btnTipMsg.Text = Language.StringByID(StringId.DefenseAndUndefenseTipMsg); |
| | | } |
| | | if (UserInfo.Current.appUnlockPage.Contains("3")) |
| | | { |
| | | btnDoorlockBg.IsSelected = btnDoorlockSelectionIcon.IsSelected = btnDoorlockSelectionTip.IsSelected = true; |
| | | btnTipMsg.Text = Language.StringByID(StringId.RemoteUnlockingTipMsg); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | LoadEventList(); |
| | | new TopViewDiv(bodyView,Language.StringByID(StringId.AC)).LoadTopView_FunctionTop(aC, actionRefresh); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(aC); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | /// <summary> |
| | | /// å è½½ä¿®æ¹æ¨¡å¼åºå |
| | |
| | | |
| | | LoadEventList(); |
| | | new TopViewDiv(bodyView,Language.StringByID(StringId.Curtain)).LoadTopView_FunctionTop(curtain, actionRefresh); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(curtain); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | LoadEventList(); |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Curtain)).LoadTopView_FunctionTop(curtain,actionRefresh); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(curtain); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | LoadEventList(); |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Curtain)).LoadTopView_FunctionTop(curtain, actionRefresh); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(curtain); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | LoadEventList(); |
| | | |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Fan)).LoadTopView_FunctionTop(fan, actionRefresh); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(fan); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | LoadEventList(); |
| | | |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Fan)).LoadTopView_FunctionTop(socketFunction, actionRefresh); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(socketFunction); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | LoadEventList(); |
| | | |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.TV)).LoadTopView_FunctionTop(tv, actionRefresh); |
| | | DriverLayer.Control.Ins.SendReadCommand(tv); |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | LoadEventList(); |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.FloorHeating)).LoadTopView_FunctionTop(fh, actionRefresh); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(fh); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | |
| | | } |
| | | /// <summary> |
| | | /// å è½½ä¿®æ¹æ¨¡å¼åºå |
| | |
| | | LoadEventList(); |
| | | |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Lights)).LoadTopView_FunctionTop(light, actionRefresh); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(light); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | X = Application.GetRealWidth(35), |
| | | Y = btnBrightnessText.Bottom, |
| | | Width = Application.GetRealWidth(30), |
| | | Width = Application.GetRealWidth(22), |
| | | Height = Application.GetRealHeight(21), |
| | | Text = "0%", |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | |
| | | |
| | | dimmerBar = new DiyImageSeekBar() |
| | | { |
| | | X = Application.GetRealWidth(35 +22), |
| | | X = btnMinValuesText.Right, |
| | | Y = Application.GetRealHeight(312), |
| | | Width = Application.GetRealWidth(210), |
| | | Height = Application.GetRealHeight(54), |
| | |
| | | { |
| | | X = dimmerBar.Right, |
| | | Y = btnBrightnessText.Bottom, |
| | | Width = Application.GetRealWidth(45), |
| | | Width = Application.GetRealWidth(35), |
| | | Height = Application.GetRealHeight(21), |
| | | Text = "100%", |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | |
| | | |
| | | LoadEventList(); |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Lights)).LoadTopView_FunctionTop(light, actionRefresh); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(light); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | } |
| | | } |
| | |
| | | LoadEventList(); |
| | | |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Lights)).LoadTopView_FunctionTop(light, actionRefresh); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(light); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | X = Application.GetRealWidth(22), |
| | | Y = Application.GetRealHeight(261), |
| | | Width = Application.GetRealWidth(37 + 5+20), |
| | | Width = Application.GetRealWidth(37 + 5), |
| | | Height = Application.GetRealHeight(20), |
| | | TextColor = MusicColor.TextTimeColor, |
| | | TextSize = TextSize.Text14, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | |
| | | }; |
| | | /// <summary> |
| | | ///é³ä¹ç»ææ¶é´ |
| | | /// </summary> |
| | | public Button endTimeBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(269-20), |
| | | X = Application.GetRealWidth(269), |
| | | Y = Application.GetRealHeight(261), |
| | | Width = Application.GetRealWidth(37 + 5+20), |
| | | Width = Application.GetRealWidth(37 + 5), |
| | | Height = Application.GetRealHeight(20), |
| | | TextColor = MusicColor.TextTimeColor, |
| | | TextSize = TextSize.Text14, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | |
| | | }; |
| | | /// <summary> |
| | | /// æååç§°ï¼TextViewè¶
åºé¿åº¦èªå·±æ»å¨ï¼ |
| | |
| | | { |
| | | X = Application.GetRealWidth(279 - 4), |
| | | Y = Application.GetRealHeight(418), |
| | | Width = Application.GetRealWidth(26 + 4+10), |
| | | Width = Application.GetRealWidth(26 + 4), |
| | | Height = Application.GetRealHeight(17), |
| | | Text = "0%", |
| | | TextColor = MusicColor.MusicNoTxetColor, |