| | |
| | | 436=Added Devices |
| | | 437=Device List |
| | | 438=humidity:{0}% air:{1} wind:{2} |
| | | 439=Real time: {0} kw |
| | | 439=Real time: {0} kW |
| | | 440=Next step |
| | | 441=Please select all areas of capture status |
| | | 442=Generate Scene |
| | |
| | | 523=Delay alarm |
| | | 524=Bypass |
| | | 525=Enable |
| | | 526=Cancel account |
| | | |
| | | 1000=Room Humidity |
| | | 1001=V-chip |
| | |
| | | 523=延时报警 |
| | | 524=停用 |
| | | 525=启用 |
| | | 526=注销账号 |
| | | |
| | | 1000=室内湿度 |
| | | 1001=童锁 |
| | |
| | | 1093= |
| | | 1094=选择时间 |
| | | 1095=选择日期 |
| | | 1096=Generate |
| | | 1096=生成 |
| | | 1097=临时密码已经复制 |
| | | 1098=清除当前临时密码? |
| | | 1099=生效时间必须大于失效时间 |
| | |
| | | <Reference Include="Square.OkIO"> |
| | | <HintPath>..\DLL\EZvizMonitor\Square.OkIO.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="ys"> |
| | | <HintPath>..\DLL\EZvizMonitor\ys.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="Shared.Droid.HDLLinphone"> |
| | | <HintPath>..\DLL\Linphone\Android\Shared.Droid.HDLLinphone.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="Shared.Droid.LCVideoSDK"> |
| | | <HintPath>..\DLL\LC\Android\Shared.Droid.LCVideoSDK.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="ys"> |
| | | <HintPath>..\DLL\EZvizMonitor\ys.dll</HintPath> |
| | | </Reference> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <Compile Include="MainActivity.cs" /> |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="202112283" android:versionName="1.4.5" package="com.hdl.onpro"> |
| | | <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="30" /> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="202201071" android:versionName="1.5.2" package="com.hdl.onpro"> |
| | | <uses-sdk android:minSdkVersion="28" android:targetSdkVersion="30" /> |
| | | <!-- 乐橙可视对讲需要的权限 --> |
| | | <!--<uses-permission android:name="android.permission.INTERNET" />--> |
| | | <!--网络访问--> |
| | |
| | | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
| | | <uses-permission android:name="android.permission.READ_LOGS" /> |
| | | <!-- 极光推送结束 --> |
| | | <application android:allowBackup="true" android:debuggable="true" android:icon="@drawable/Icon" android:networkSecurityConfig="@xml/network_security_config" android:largeHeap="true" android:label="On Pro"> |
| | | <application android:allowBackup="true" android:debuggable="false" android:icon="@drawable/Icon" android:networkSecurityConfig="@xml/network_security_config" android:largeHeap="true" android:label="On Pro"> |
| | | <provider android:name="android.support.v4.content.FileProvider" android:authorities="com.hdl.onpro.fileProvider" android:grantUriPermissions="true" android:exported="false"> |
| | | <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" /> |
| | | </provider> |
| | |
| | | <key>UIStatusBarStyle</key> |
| | | <string>UIStatusBarStyleLightContent</string> |
| | | <key>CFBundleShortVersionString</key> |
| | | <string>1.4.502112271</string> |
| | | <string>1.5.102101041</string> |
| | | <key>CFBundleVersion</key> |
| | | <string>1.4.12271</string> |
| | | <string>1.5.101041</string> |
| | | <key>NSLocationWhenInUseUsageDescription</key> |
| | | <string>Use geographic location to provide services such as weather</string> |
| | | <key>NSAppleMusicUsageDescription</key> |
| | |
| | | 436=Added Devices |
| | | 437=Device List |
| | | 438=humidity:{0}% air:{1} wind:{2} |
| | | 439=Real time: {0} kw |
| | | 439=Real time: {0} kW |
| | | 440=Next step |
| | | 441=Please select all areas of capture status |
| | | 442=Generate Scene |
| | |
| | | 523=Delay alarm |
| | | 524=Bypass |
| | | 525=Enable |
| | | 526=Cancel account |
| | | |
| | | 1000=Room Humidity |
| | | 1001=V-chip |
| | |
| | | 523=延时报警 |
| | | 524=停用 |
| | | 525=启用 |
| | | 526=注销账号 |
| | | |
| | | 1000=室内湿度 |
| | | 1001=童锁 |
| | |
| | | 1092=生效时间 |
| | | 1092=Effective time |
| | | 1093=失效时间 |
| | | 1093= |
| | | 1094=选择时间 |
| | | 1095=选择日期 |
| | | 1096=Generate |
| | | 1096=生成 |
| | | 1097=临时密码已经复制 |
| | | 1098=清除当前临时密码? |
| | | 1099=生效时间必须大于失效时间 |
| | |
| | | { |
| | | public static class StringId |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 注销账号 |
| | | /// </summary> |
| | | public const int CancelAccount = 526; |
| | | /// <summary> |
| | | /// 启用 |
| | | /// </summary> |
| | |
| | | |
| | | public static class SPK |
| | | { |
| | | /// <summary> |
| | | /// 门锁 |
| | | /// </summary> |
| | | public const string DoorLock = "security.door"; |
| | | |
| | | public static List<string> GetDoorLockSPKList() |
| | | { |
| | | var list = new List<string>(); |
| | | list.Add(DoorLock); |
| | | return list; |
| | | } |
| | | |
| | | |
| | | #region 灯光 |
| | |
| | | return Functions.FindAll((obj) => spkList.Contains(obj.spk)); |
| | | } |
| | | |
| | | public List<Function> GetDoorLockList() |
| | | { |
| | | var spkList = SPK.GetDoorLockSPKList(); |
| | | return Functions.FindAll((obj) => spkList.Contains(obj.spk)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 新风列表 |
| | | /// </summary> |
| | |
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\ArmCenter\PushConfigPage.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Electrical\SocketPage_InstantaneousValue.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Electrical\SocketPage_CumulativePowerConsumption.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\4-PersonalCenter\CancelAccountPage.cs" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <Folder Include="$(MSBuildThisFileDirectory)Entity\Device\" />
|
| | |
| | | /// <summary> |
| | | /// 版本号 |
| | | /// </summary> |
| | | public static string VersionString = "1.4.5"; |
| | | public static string VersionString = "1.5.2"; |
| | | ///// <summary> |
| | | ///// 客户端类型 |
| | | ///// </summary> |
| | |
| | | var airFresh2 = new AirFreshRelayControlPage(); |
| | | airFresh2.AddForm(function, btnCollectionIcon, btnName, btnFromFloor); |
| | | break; |
| | | case SPK.DoorLock: |
| | | var doorLockPage = new DoorLockListPage(); |
| | | doorLockPage.AddForm(function, btnCollectionIcon, btnName, btnFromFloor); |
| | | break; |
| | | } |
| | | }; |
| | | return eventHandler; |
| | |
| | | BtnTilte = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(220), |
| | | Width = Application.GetRealWidth(260), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | Text = tilteText, |
| | | IsMoreLines = true |
| | | }; |
| | | this.AddChidren(BtnTilte); |
| | | /// <summary> |
| | |
| | | //etAccount.Text = "18316120654";//tujie |
| | | //etAccount.Text = "15626203746"; |
| | | //etAccount.Text = "13450425807";//黄竹溪 knx项目 |
| | | etAccount.Text = "18059593333"; |
| | | } |
| | | else |
| | | { |
| | |
| | | OnAppConfig.Instance.GlobalRegion = mGlobalRegionListObj; |
| | | OnAppConfig.Instance.SaveConfig(); |
| | | } |
| | | OnAppConfig.Instance.RequestHttpsHost = @"https://bahrain-gateway.hdlcontrol.com"; |
| | | } |
| | | catch { } |
| | | } |
| | |
| | | |
| | | #if DEBUG |
| | | |
| | | FunctionList.List.Functions.Add(new Function() |
| | | FunctionList.List.Functions.Add(new Function |
| | | { |
| | | spk = SPK.PanelSocket, |
| | | name = "面板插座", |
| | | attributes = new List<FunctionAttributes> |
| | | { |
| | | new FunctionAttributes(){ key = "on_off",curValue= "on",state = "on" }, |
| | | new FunctionAttributes(){ key = "on_off_usb",curValue= "on",state = "on" }, |
| | | new FunctionAttributes(){ key = "active_power",curValue= "220",state = "220" }, |
| | | new FunctionAttributes(){ key = "voltage",curValue= "5",state = "5" }, |
| | | new FunctionAttributes(){ key = "current",curValue= "110",state = "110" }, |
| | | new FunctionAttributes(){ key = "total_electricity",curValue= "123.33",state = "123.33" }, |
| | | name = "门锁", |
| | | spk = SPK.DoorLock, |
| | | sid = "12345", |
| | | attributes = new List<FunctionAttributes> { |
| | | new FunctionAttributes(){ key = "door_status",curValue= "open",state = "open" }, |
| | | new FunctionAttributes(){ key = "normal_open",curValue= "true",state = "true" }, |
| | | new FunctionAttributes(){ key = "normal_open_countdown",curValue= "10",state = "10" }, |
| | | new FunctionAttributes(){ key = "local_id",curValue= "10",state = "10" }, |
| | | new FunctionAttributes(){ key = "door_volume",curValue= "10",state = "10" }, |
| | | new FunctionAttributes(){ key = "door_volume_step",curValue= "up",state = "up" }, |
| | | new FunctionAttributes(){ key = "battery_value",curValue= "100",state = "100" }, |
| | | new FunctionAttributes(){ key = "battery_percentage",curValue= "100",state = "100" }, |
| | | new FunctionAttributes(){ key = "battery_state",curValue= "high",state = "high" }, |
| | | } |
| | | }); |
| | | FunctionList.List.Functions.Add(new Function |
| | | { |
| | | name = "门锁1", |
| | | spk = SPK.DoorLock, |
| | | sid = "123", |
| | | attributes = new List<FunctionAttributes> { |
| | | new FunctionAttributes(){ key = "door_status",curValue= "open",state = "open" }, |
| | | new FunctionAttributes(){ key = "normal_open",curValue= "true",state = "true" }, |
| | | new FunctionAttributes(){ key = "normal_open_countdown",curValue= "10",state = "10" }, |
| | | new FunctionAttributes(){ key = "local_id",curValue= "10",state = "10" }, |
| | | new FunctionAttributes(){ key = "door_volume",curValue= "10",state = "10" }, |
| | | new FunctionAttributes(){ key = "door_volume_step",curValue= "up",state = "up" }, |
| | | new FunctionAttributes(){ key = "battery_value",curValue= "100",state = "100" }, |
| | | new FunctionAttributes(){ key = "battery_percentage",curValue= "100",state = "100" }, |
| | | new FunctionAttributes(){ key = "battery_state",curValue= "high",state = "high" }, |
| | | } |
| | | }); |
| | | |
| | | //FunctionList.List.Functions.Add(new Function() |
| | | //{ |
| | | // spk = SPK.PanelSocket, |
| | | // name = "面板插座", |
| | | // attributes = new List<FunctionAttributes> |
| | | // { |
| | | // new FunctionAttributes(){ key = "on_off",curValue= "on",state = "on" }, |
| | | // new FunctionAttributes(){ key = "on_off_usb",curValue= "on",state = "on" }, |
| | | // new FunctionAttributes(){ key = "active_power",curValue= "220",state = "220" }, |
| | | // new FunctionAttributes(){ key = "voltage",curValue= "5",state = "5" }, |
| | | // new FunctionAttributes(){ key = "current",curValue= "110",state = "110" }, |
| | | // new FunctionAttributes(){ key = "total_electricity",curValue= "123.33",state = "123.33" }, |
| | | // } |
| | | //}); |
| | | |
| | | //FunctionList.List.Functions.Add(new Function() |
| | | //{ |
| | |
| | | #endregion |
| | | break; |
| | | case ShowFunction.DoorLock: |
| | | functionCount = FunctionList.List.GetDoorLockList().Count; |
| | | functionOnCount = 1; |
| | | break; |
| | | case ShowFunction.Electric: |
| | | #region 电器 |
| | |
| | | break; |
| | | case ShowFunction.DoorLock: |
| | | btnName.TextID = StringId.DoorLock; |
| | | btnFunctionViewBg.MouseUpEventHandler = (sende, e) => { |
| | | var form = new DoorLockListPage(); |
| | | form.AddForm(FunctionList.List.GetDoorLockList()); |
| | | }; |
| | | break; |
| | | case ShowFunction.Electric: |
| | | #region 电器 |
| | |
| | | |
| | | } |
| | | //界面跳转--音乐跳转自己的界面--环境跳转自己的界面 |
| | | if (item != ShowFunction.Music && item != ShowFunction.Environmental && item != ShowFunction.SecurityMonitoring |
| | | if (item != ShowFunction.Music && item != ShowFunction.Environmental && item != ShowFunction.SecurityMonitoring && item != ShowFunction.DoorLock |
| | | && ShowFunction.EnergyMonitoring!= item && ShowFunction.VideoIntercom != item && ShowFunction.SecurityCenter != item) |
| | | { |
| | | btnFunctionViewBg.MouseUpEventHandler = (sender, e) => |
| | |
| | | }); |
| | | #endregion |
| | | |
| | | #region 组号 |
| | | //var grounpView = new FrameLayout() |
| | | //{ |
| | | // Height = Application.GetRealWidth(50), |
| | | //}; |
| | | //contentView.AddChidren(grounpView); |
| | | |
| | | //Button btnGroupTitle = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(16), |
| | | // //Width = Application.GetRealWidth(90), |
| | | // TextAlignment = TextAlignment.CenterLeft, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.TextFontSize, |
| | | // Text = "组号" |
| | | //}; |
| | | //grounpView.AddChidren(btnGroupTitle); |
| | | |
| | | //var etGroup = new EditText() |
| | | //{ |
| | | // TextAlignment = TextAlignment.CenterRight, |
| | | // Width = Application.GetRealWidth(350), |
| | | // Text = scene.group, |
| | | // TextColor = CSS_Color.PromptingColor1, |
| | | // TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | // IsNumberKeyboardType = true |
| | | //}; |
| | | //grounpView.AddChidren(etGroup); |
| | | //etGroup.TextChangeEventHandler = (sender, e) => { |
| | | // scene.group = e; |
| | | //}; |
| | | |
| | | |
| | | //Button btnGroupLine = new Button() |
| | | //{ |
| | | // Y = Application.GetRealWidth(49), |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Height = Application.GetRealHeight(1), |
| | | // Width = Application.GetRealWidth(343), |
| | | // BackgroundColor = CSS_Color.DividingLineColor, |
| | | //}; |
| | | //grounpView.AddChidren(btnGroupLine); |
| | | |
| | | #endregion |
| | | |
| | | #region 场景延时row |
| | | if (DB_ResidenceData.Instance.GatewayType == 1) |
| | | { |
| | |
| | | var tempScene = sceneList.Find((obj) => obj.userSceneId == scene.userSceneId); |
| | | if (tempScene != null) |
| | | { |
| | | scene.functions = tempScene.functions; |
| | | scene = tempScene; |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | btnSceneName.Text = scene.name; |
| | | //etGroup.Text = scene.group; |
| | | LoadFunctionRow(); |
| | | waitPage.Hide(); |
| | | waitPage.RemoveFromParent(); |
| | |
| | | bodyView.AddChidren(lineView); |
| | | |
| | | #region 功能介绍 |
| | | var functionView = new ListCellView() |
| | | { |
| | | Y = lineView.Bottom, |
| | | }; |
| | | bodyView.AddChidren(functionView); |
| | | functionView.BtnTilte.TextID = StringId.FunctionIntroduced; |
| | | Action functionAction = () => |
| | | { |
| | | var mPage = new FunctionIntroductionPage(); |
| | | MainPage.BasePageView.AddChidren(mPage); |
| | | mPage.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | functionView.GoAction = functionAction; |
| | | //var functionView = new ListCellView() |
| | | //{ |
| | | // Y = lineView.Bottom, |
| | | //}; |
| | | //bodyView.AddChidren(functionView); |
| | | //functionView.BtnTilte.TextID = StringId.FunctionIntroduced; |
| | | //Action functionAction = () => |
| | | //{ |
| | | // var mPage = new FunctionIntroductionPage(); |
| | | // MainPage.BasePageView.AddChidren(mPage); |
| | | // mPage.LoadPage(); |
| | | // MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | //}; |
| | | //functionView.GoAction = functionAction; |
| | | #endregion |
| | | |
| | | #region 投诉 |
| | | var complaintsView = new ListCellView() |
| | | { |
| | | Y = functionView.Bottom, |
| | | Y = lineView.Bottom, |
| | | }; |
| | | bodyView.AddChidren(complaintsView); |
| | | complaintsView.BtnTilte.TextID = StringId.Complaints; |
| | |
| | | { |
| | | X = btnEmailTitle.Right, |
| | | Y = btnEmailText.Bottom + Application.GetRealWidth(4), |
| | | Height = Application.GetRealWidth(20), |
| | | Height = Application.GetRealWidth(25), |
| | | Width = Application.GetRealWidth(266), |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
New file |
| | |
| | | using System; |
| | | using Shared; |
| | | using HDL_ON.UI.CSS; |
| | | using Xamarin.Essentials; |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | | public class CancelAccountPage : FrameLayout |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | FrameLayout bodyView; |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public CancelAccountPage() |
| | | { |
| | | bodyView = this; |
| | | BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public void LoadPage() |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.CancelAccount)).LoadTopView(); |
| | | |
| | | var textView = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(150), |
| | | Padding = new Padding( Application.GetRealWidth(16), Application.GetRealWidth(16), Application.GetRealWidth(16), Application.GetRealWidth(16)), |
| | | IsMoreLines = true, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | }; |
| | | |
| | | if(Language.CurrentLanguage == "Chinese") |
| | | { |
| | | textView.Text = "您可通过电话专线与电子邮件的形式向我们申请注销账户,我们收到您的申请后,会第一时间安排工程人员对您App应用账户数据、以及智能家居智能硬件本地数据全部删除!"; |
| | | } |
| | | else |
| | | { |
| | | textView.Text = "You can apply to us for cancellation of your account through special telephone line and e-mail. After receiving your application, we will arrange engineers to delete all your app account data and local data of smart home smart hardware at the first time!"; |
| | | } |
| | | bodyView.AddChidren(textView); |
| | | |
| | | #region 投诉联系 |
| | | FrameLayout phoneRow = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(214), |
| | | Height = Application.GetRealWidth(50), |
| | | }; |
| | | bodyView.AddChidren(phoneRow); |
| | | |
| | | Button btnPhoneTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(48), |
| | | TextID = StringId.Telephone, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | }; |
| | | phoneRow.AddChidren(btnPhoneTitle); |
| | | if (Language.CurrentLanguage == "English") |
| | | { |
| | | btnPhoneTitle.Text = "Tel.:"; |
| | | } |
| | | |
| | | Button btnPhoneText = new Button() |
| | | { |
| | | X = btnPhoneTitle.Right, |
| | | Width = Application.GetRealWidth(266), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | Text = "400 855 8535", |
| | | }; |
| | | phoneRow.AddChidren(btnPhoneText); |
| | | /// <summary> |
| | | /// 前进图标 |
| | | /// </summary> |
| | | var btnImage = new Button() |
| | | { |
| | | X = Application.GetRealWidth(343), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(16), |
| | | Height = Application.GetRealWidth(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | phoneRow.AddChidren(btnImage); |
| | | phoneRow.AddChidren(new Button() { X = Application.GetRealWidth(16), Y = Application.GetRealWidth(49), Height = Application.GetRealHeight(1), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | | PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER); |
| | | }; |
| | | |
| | | phoneRow.MouseUpEventHandler = eventHandler; |
| | | btnPhoneText.MouseUpEventHandler = eventHandler; |
| | | btnImage.MouseUpEventHandler = eventHandler; |
| | | #endregion |
| | | |
| | | #region 联系邮箱 |
| | | FrameLayout emailRow = new FrameLayout() |
| | | { |
| | | Y = phoneRow.Bottom, |
| | | Height = Application.GetRealWidth(54), |
| | | }; |
| | | bodyView.AddChidren(emailRow); |
| | | |
| | | Button btnEmailTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(48), |
| | | TextID = StringId.Email_, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | }; |
| | | emailRow.AddChidren(btnEmailTitle); |
| | | |
| | | Button btnEmailText = new Button() |
| | | { |
| | | X = btnEmailTitle.Right, |
| | | Y = Application.GetRealWidth(8), |
| | | Height = Application.GetRealWidth(20), |
| | | Width = Application.GetRealWidth(266), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | Text = Constant.SUPPORT_EMAIL, |
| | | }; |
| | | emailRow.AddChidren(btnEmailText); |
| | | |
| | | Button btnEmailTipText = new Button() |
| | | { |
| | | X = btnEmailTitle.Right, |
| | | Y = btnEmailText.Bottom + Application.GetRealWidth(4), |
| | | Height = Application.GetRealWidth(25), |
| | | Width = Application.GetRealWidth(266), |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextID = StringId.WillGivePriorityToTheTreatmen, |
| | | }; |
| | | emailRow.AddChidren(btnEmailTipText); |
| | | |
| | | if (Language.CurrentLanguage == "English") |
| | | { |
| | | btnEmailTitle.Width = Application.GetRealWidth(80); |
| | | emailRow.Height = Application.GetRealWidth(65); |
| | | btnEmailTipText.IsMoreLines = true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 前进图标 |
| | | /// </summary> |
| | | var btnImage2 = new Button() |
| | | { |
| | | X = Application.GetRealWidth(343), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(16), |
| | | Height = Application.GetRealWidth(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | emailRow.AddChidren(btnImage2); |
| | | |
| | | emailRow.AddChidren(new Button() { X = Application.GetRealWidth(16), Y = emailRow.Height - Application.GetRealHeight(1), Height = Application.GetRealHeight(1), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler2 = (sender, e) => |
| | | { |
| | | CopyToClipboard(Constant.SUPPORT_EMAIL); |
| | | }; |
| | | |
| | | emailRow.MouseUpEventHandler = eventHandler2; |
| | | btnEmailText.MouseUpEventHandler = eventHandler2; |
| | | btnImage2.MouseUpEventHandler = eventHandler2; |
| | | #endregion |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 复制到剪切板 |
| | | /// </summary> |
| | | /// <param name="text"></param> |
| | | void CopyToClipboard(string text) |
| | | { |
| | | Clipboard.SetTextAsync(text); |
| | | Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | /// <summary> |
| | | /// 解锁设置区域 |
| | | /// </summary> |
| | | FrameLayout interpretationSettingsView; |
| | | Button btnInterpretationSettingsTitle; |
| | | Button btnInterpretationSettingsTip; |
| | | Button btnInterpretationSettingsRight; |
| | | //FrameLayout interpretationSettingsView; |
| | | //Button btnInterpretationSettingsTitle; |
| | | //Button btnInterpretationSettingsTip; |
| | | //Button btnInterpretationSettingsRight; |
| | | #endregion |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region 解锁设置区域 |
| | | var topPaddingView2 = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(8) |
| | | }; |
| | | bodyScrolView.AddChidren(topPaddingView2); |
| | | /// <summary> |
| | | /// 解锁设置区域 |
| | | /// </summary> |
| | | interpretationSettingsView = new FrameLayout() |
| | | { |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Height = Application.GetRealHeight(70), |
| | | }; |
| | | bodyScrolView.AddChidren(interpretationSettingsView); |
| | | if(Language.CurrentLanguage != "Chinese") |
| | | { |
| | | interpretationSettingsView.Height = Application.GetRealHeight(80); |
| | | } |
| | | |
| | | btnInterpretationSettingsTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Height = Application.GetRealHeight(32), |
| | | TextAlignment = TextAlignment.BottomLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = StringId.InterpretationSettings, |
| | | }; |
| | | interpretationSettingsView.AddChidren(btnInterpretationSettingsTitle); |
| | | #region 解锁设置区域 |
| | | ///// <summary> |
| | | ///// 解锁设置区域 |
| | | ///// </summary> |
| | | //interpretationSettingsView = new FrameLayout() |
| | | //{ |
| | | // BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | // Height = Application.GetRealHeight(70), |
| | | //}; |
| | | //bodyScrolView.AddChidren(interpretationSettingsView); |
| | | //if(Language.CurrentLanguage != "Chinese") |
| | | //{ |
| | | // interpretationSettingsView.Height = Application.GetRealHeight(80); |
| | | //} |
| | | |
| | | btnInterpretationSettingsTip = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Y = btnInterpretationSettingsTitle.Bottom, |
| | | Height = Application.GetRealHeight(32), |
| | | Width = Application.GetRealWidth(310), |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextID = StringId.AppUnlockSettingsTip, |
| | | IsMoreLines = true, |
| | | }; |
| | | interpretationSettingsView.AddChidren(btnInterpretationSettingsTip); |
| | | //btnInterpretationSettingsTitle = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(16), |
| | | // Height = Application.GetRealHeight(32), |
| | | // TextAlignment = TextAlignment.BottomLeft, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.SubheadingFontSize, |
| | | // TextID = StringId.InterpretationSettings, |
| | | //}; |
| | | //interpretationSettingsView.AddChidren(btnInterpretationSettingsTitle); |
| | | |
| | | btnInterpretationSettingsRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | interpretationSettingsView.AddChidren(btnInterpretationSettingsRight); |
| | | interpretationSettingsView.AddChidren(new LineView(interpretationSettingsView.Height)); |
| | | //btnInterpretationSettingsTip = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(16), |
| | | // Y = btnInterpretationSettingsTitle.Bottom, |
| | | // Height = Application.GetRealHeight(32), |
| | | // Width = Application.GetRealWidth(310), |
| | | // TextAlignment = TextAlignment.TopLeft, |
| | | // TextColor = CSS_Color.PromptingColor1, |
| | | // TextSize = CSS_FontSize.TextFontSize, |
| | | // TextID = StringId.AppUnlockSettingsTip, |
| | | // IsMoreLines = true, |
| | | //}; |
| | | //interpretationSettingsView.AddChidren(btnInterpretationSettingsTip); |
| | | |
| | | //btnInterpretationSettingsRight = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(339), |
| | | // Gravity = Gravity.CenterVertical, |
| | | // Width = Application.GetMinRealAverage(16), |
| | | // Height = Application.GetMinRealAverage(16), |
| | | // UnSelectedImagePath = "Public/Right.png", |
| | | //}; |
| | | //interpretationSettingsView.AddChidren(btnInterpretationSettingsRight); |
| | | //interpretationSettingsView.AddChidren(new LineView(interpretationSettingsView.Height)); |
| | | #endregion |
| | | |
| | | #region 服务器信息 |
| | |
| | | }; |
| | | myServerInfoCellView.GoAction = selectAction; |
| | | myServerInfoCellView.BtnTilte.Text = Language.StringByID(StringId.ServerInformation); |
| | | myServerInfoCellView.LineView.RemoveFromParent(); |
| | | //myServerInfoCellView.LineView.RemoveFromParent(); |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region 注销账号 |
| | | ListCellView logOffView = new ListCellView() |
| | | { |
| | | }; |
| | | bodyScrolView.AddChidren(logOffView); |
| | | //注销账号界面 |
| | | Action logOffAction = () => |
| | | { |
| | | var myServerInfoPage = new CancelAccountPage(); |
| | | MainPage.BasePageView.AddChidren(myServerInfoPage); |
| | | myServerInfoPage.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | logOffView.GoAction = logOffAction; |
| | | logOffView.BtnTilte.Text = Language.StringByID(StringId.CancelAccount); |
| | | logOffView.LineView.RemoveFromParent(); |
| | | |
| | | #endregion |
| | | |
| | |
| | | LoadEvent_ChangeHeadImageView(); |
| | | LoadEvent_Logout(); |
| | | LoadEvent_EditUserName(); |
| | | LoadEvent_SkipInterpretationSettings(); |
| | | //LoadEvent_SkipInterpretationSettings(); |
| | | LoadEvent_ChangeBindEmail(); |
| | | LoadEvent_ChangeBindPhone(); |
| | | LoadEvent_SkipModifyPassword(); |
| | |
| | | #endregion |
| | | |
| | | #region 解锁设置区域 |
| | | void LoadEvent_SkipInterpretationSettings() |
| | | { |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | | var page = new AppUnlockSettingsPage(); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | //void LoadEvent_SkipInterpretationSettings() |
| | | //{ |
| | | // EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | // { |
| | | // var page = new AppUnlockSettingsPage(); |
| | | // MainPage.BasePageView.AddChidren(page); |
| | | // page.LoadPage(); |
| | | // MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | // }; |
| | | |
| | | btnInterpretationSettingsRight.MouseUpEventHandler = eventHandler; |
| | | btnInterpretationSettingsTitle.MouseUpEventHandler = eventHandler; |
| | | btnInterpretationSettingsTip.MouseUpEventHandler = eventHandler; |
| | | } |
| | | // btnInterpretationSettingsRight.MouseUpEventHandler = eventHandler; |
| | | // btnInterpretationSettingsTitle.MouseUpEventHandler = eventHandler; |
| | | // btnInterpretationSettingsTip.MouseUpEventHandler = eventHandler; |
| | | //} |
| | | |
| | | #endregion |
| | | |
| | |
| | | /// <param name="i_listDevice">门锁设备列表</param> |
| | | public void ShowForm(List<Function> i_listDevice) |
| | | { |
| | | |
| | | #if DEBUG |
| | | |
| | | |
| | | #endif |
| | | |
| | | |
| | | |
| | | this.listDevice.AddRange(i_listDevice); |
| | | |
| | | //智能门锁 |
| | |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextID = StringId.InstantaneousValue |
| | | TextID = StringId.InstantaneousValue, |
| | | IsMoreLines = true |
| | | }; |
| | | controlView.AddChidren(btnInstantaneousValueText); |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | |
| | | { |
| | | X = Application.GetRealWidth(200), |
| | | Y = btnTotalElectricity.Bottom, |
| | | Width = Application.GetRealWidth(235), |
| | | Width = Application.GetRealWidth(100), |
| | | Height = Application.GetRealHeight(29), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextID = StringId.CumulativePowerConsumption |
| | | TextID = StringId.CumulativePowerConsumption, |
| | | IsMoreLines = true |
| | | }; |
| | | controlView.AddChidren(btnTotalElectricityText); |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = StringId.RealTimePowerConsumption, |
| | | }; |
| | | btnRealTimeData.Text = Language.StringByID(StringId.RealTimePowerConsumption).Replace("{0}", function.GetAttrState("active_power")); |
| | | double realTimePower = 0; |
| | | double.TryParse(function.GetAttrState("active_power"), out realTimePower); |
| | | realTimePower /= 1000; |
| | | btnRealTimeData.Text = Language.StringByID(StringId.RealTimePowerConsumption).Replace("{0}", realTimePower.ToString()); |
| | | generalTableView.AddChidren(btnRealTimeData); |
| | | |
| | | |