6个文件已添加
15个文件已删除
61个文件已修改
| | |
| | | 15973=消息中心 |
| | | 15974=确认删除消息? |
| | | 15975=正在上传备份文件 |
| | | 15976=确认删除全部消息? |
| | | 15977=确认标记全部消息为已读? |
| | | |
| | | ;★★★★下面这些是接口的返回信息翻译,从18000开始★★★★
|
| | | 18004=指定网关已经被绑定
|
old mode 100644
new mode 100755
| | |
| | | <AndroidTlsProvider>btls</AndroidTlsProvider>
|
| | | <AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
|
| | | <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
|
| | | <AndroidSupportedAbis />
|
| | | <AndroidDexTool>d8</AndroidDexTool>
|
| | | <AotAssemblies>false</AotAssemblies>
|
| | | <EnableLLVM>false</EnableLLVM>
|
| | | <AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
|
| | | <BundleAssemblies>false</BundleAssemblies>
|
| | | </PropertyGroup>
|
| | | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
| | | <DebugSymbols>true</DebugSymbols>
|
| | |
| | | <MandroidI18n>cjk</MandroidI18n>
|
| | | <DefineConstants>Android,Release</DefineConstants>
|
| | | <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
| | | <AotAssemblies>false</AotAssemblies>
|
| | | <EnableLLVM>false</EnableLLVM>
|
| | | <AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
|
| | | <BundleAssemblies>false</BundleAssemblies>
|
| | | <AndroidDexTool>d8</AndroidDexTool>
|
| | | <AndroidUseAapt2>false</AndroidUseAapt2>
|
| | | </PropertyGroup>
|
| | |
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\Account\Back.png" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\RoomIcon\0.JPG" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\RoomIcon\1.JPG" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\RoomIcon\2.JPG" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\RoomIcon\3.JPG" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\RoomIcon\4.JPG" />
|
| | | </ItemGroup>
|
| | | <Import Project="..\Shared\Shared.projitems" Label="Shared" Condition="Exists('..\Shared\Shared.projitems')" />
|
| | | <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
| | | <Import Project="..\packages\Xamarin.Android.Support.Annotations.26.0.2\build\MonoAndroid80\Xamarin.Android.Support.Annotations.targets" Condition="Exists('..\packages\Xamarin.Android.Support.Annotations.26.0.2\build\MonoAndroid80\Xamarin.Android.Support.Annotations.targets')" />
|
old mode 100644
new mode 100755
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="2019111401" android:installLocation="auto" android:versionName="1.0.19111401"> |
| | | <uses-sdk android:minSdkVersion="26" android:targetSdkVersion="26" /> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="2019111801" android:installLocation="auto" android:versionName="1.0.19111801"> |
| | | <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="26" /> |
| | | <permission android:name="com.hdl.home.permission.JPUSH_MESSAGE" android:protectionLevel="signature" /> |
| | | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| | | <!--8.0权限--> |
old mode 100644
new mode 100755
Diff too large |
| | |
| | | 15973=消息中心 |
| | | 15974=确认删除消息? |
| | | 15975=正在上传备份文件 |
| | | 15976=确认删除全部消息? |
| | | 15977=确认标记全部消息为已读? |
| | | |
| | | ;★★★★下面这些是接口的返回信息翻译,从18000开始★★★★
|
| | | 18004=指定网关已经被绑定
|
| | |
| | | Config.Instance.HomeId = GetHouseIdByFilePath(Config.Instance.HomeFilePathList[0]); |
| | | } |
| | | Config.Instance.Save(); |
| | | //检测住宅对象 |
| | | if (Config.Instance.Home.Id == string.Empty)
|
| | | {
|
| | | Config.Instance.Home = House.GetHouseByHouseId(Config.Instance.HomeId);
|
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | public bool IsSharedRoom = false; |
| | | |
| | | /// <summary> |
| | | /// 是否可以刷新房间数据了 |
| | | /// 需要等初始化本地设备数据后在可以初始化房间数据 |
| | | /// </summary> |
| | | public static bool CanInitAllRoom; |
| | | |
| | | /// <summary> |
| | | /// 获取喜爱房间的所有设备路径 |
| | | /// </summary> |
| | | /// <value>The love room device list.</value> |
| | |
| | | /// </summary> |
| | | public static void InitAllRoom() |
| | | { |
| | | //if (CanInitAllRoom == false) |
| | | //{ |
| | | // return; |
| | | //} |
| | | Lists.Clear(); |
| | | if (Config.Instance.Home.RoomFilePathList.Contains("Room_Favorite.json") == false) |
| | | { |
| | |
| | | { |
| | | if (room.IsSharedRoom) |
| | | { |
| | | room.Name = $"({Language.StringByID(R.MyInternationalizationString.Shared)}){room.Name}"; |
| | | room.Name = $"{room.Name}"; |
| | | } |
| | | Lists.Add(room); |
| | | } |
| | |
| | | }
|
| | | }
|
| | | homeTemp.Save(false);
|
| | | CanInitAllRoom = true;
|
| | | InitAllRoom();
|
| | | } |
| | | |
| | |
| | | { |
| | | return; |
| | | } |
| | | this.RemoveFromParent(); |
| | | |
| | | UserPage.Instance.Fresh(); |
| | | HomePage.Instance.ShowLoginLoadView(); |
| | | |
| | | new System.Threading.Thread(async () => |
| | | { |
| | |
| | | var homes = await House.GetHomeLists(); |
| | | //刷新个人中心的内存及线程 |
| | | await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread(); |
| | | Shared.Common.Room.CanInitAllRoom = true; |
| | | Shared.Common.Room.InitAllRoom(); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | UserPage.Instance.Fresh(); |
| | | CommonPage.Loading.Hide(); |
| | | this.RemoveFromParent(); |
| | | CommonPage.Instance.RemoveViewByTag("Login"); |
| | | UserPage.Instance.Fresh(); |
| | | }); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | |
| | | if (re) |
| | | { |
| | | //直接登录 |
| | | //this.RemoveFromParent(); |
| | | |
| | | //UserPage.Instance.Fresh(); |
| | | HomePage.Instance.ShowLoginLoadView(); |
| | | //启动ZigBee |
| | | ZigBee.Common.Application.Init(); |
| | | var resultRegID = await Shared.Common.CommonPage.Instance.PushRegID(); |
| | | var homes = await House.GetHomeLists(); |
| | | //刷新个人中心的内存及线程 |
| | | await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread(); |
| | | Shared.Common.Room.CanInitAllRoom = true; |
| | | Shared.Common.Room.InitAllRoom(); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | this.RemoveFromParent(); |
| | | CommonPage.Instance.RemoveViewByTag("Login"); |
| | | UserPage.Instance.Fresh(); |
| | | }); |
| | | } |
| | |
| | | var homes = await House.GetHomeLists(); |
| | | //刷新个人中心的内存及线程 |
| | | await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread(); |
| | | Shared.Common.Room.CanInitAllRoom = true; |
| | | Shared.Common.Room.InitAllRoom(); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | |
| | | { |
| | | return; |
| | | } |
| | | this.RemoveFromParent(); |
| | | Application.MainPage?.RemoveViewByTag("Login"); |
| | | |
| | | UserPage.Instance.Fresh(); |
| | | |
| | | HomePage.Instance.ShowLoginLoadView(); |
| | | new System.Threading.Thread(async () => |
| | | { |
| | | //启动ZigBee |
| | |
| | | //刷新个人中心的内存及线程 |
| | | await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread(); |
| | | |
| | | Shared.Common.Room.CanInitAllRoom = true; |
| | | Shared.Common.Room.InitAllRoom(); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | this.RemoveFromParent(); |
| | | CommonPage.Instance.RemoveViewByTag("Login"); |
| | | UserPage.Instance.Fresh(); |
| | | CommonPage.Loading.Hide(); |
| | | }); |
| | |
| | | { |
| | | try |
| | | { |
| | | UserPage.Instance.Fresh(); |
| | | HomePage.Instance.ShowLoginLoadView(); |
| | | |
| | | CommonPage.Loading.Start(Language.StringByID(R.MyInternationalizationString.Logining)); |
| | | Action action = async () => { |
| | | var loginSuccess = await HomePage.Instance.LoginByPWDAsync(account, password); |
| | |
| | | //刷新个人中心的内存及线程 |
| | | await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread(); |
| | | |
| | | Shared.Common.Room.CanInitAllRoom = true; |
| | | Shared.Common.Room.InitAllRoom(); |
| | | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | UserPage.Instance.Fresh(); |
| | | CommonPage.Loading.Hide(); |
| | | this.RemoveFromParent(); |
| | | CommonPage.Instance.RemoveViewByTag("Register"); |
| | | CommonPage.Instance.RemoveViewByTag("Login"); |
| | | UserPage.Instance.Fresh(); |
| | | }); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | |
| | | rollerShadeControl.Show(deviceUI, room); |
| | | }; |
| | | } |
| | | else |
| | | else if(deviceUI.CommonDevice.Type == ZigBee.Device.DeviceType.DoorLock) |
| | | { |
| | | var deviceTypeRowLayout = new RowLayout() |
| | | { |
| | |
| | | HomePage.Instance.PageIndex += 1; |
| | | userDoorLockPage.Show(); |
| | | }; |
| | | |
| | | var editBtn = new CommonForm.RowLayoutEditButton() |
| | | { |
| | | Tag = deviceUI |
| | | }; |
| | | deviceTypeRowLayout.AddRightView(editBtn); |
| | | editBtn.MouseUpEventHandler += deviceDetailHandler; |
| | | |
| | | var delBtn = new Device.CommonForm.RowLayoutDeleteButton() |
| | | { |
| | | Tag = deviceUI |
| | | }; |
| | | deviceTypeRowLayout.AddRightView(delBtn); |
| | | delBtn.MouseUpEventHandler += delEvent; |
| | | } |
| | | else |
| | | { |
| | | var deviceTypeRowLayout = new RowLayout() |
| | | { |
| | | Height = Application.GetRealHeight(129 + 35), |
| | | LineColor = ZigbeeColor.Current.GXCBackgroundColor, |
| | | Tag = deviceUI |
| | | }; |
| | | deviceListScrolView.AddChidren(deviceTypeRowLayout); |
| | | |
| | | var deviceRow = new CategoryFunctionRow(0, 35); |
| | | deviceRow.Init(deviceUI.IconPath, deviceUI.OnlineIconPath); |
| | | deviceRow.SetTitle(deviceUI.CommonDevice.DeviceEpointName); |
| | | deviceRow.SetOnLineStatu(deviceUI.CommonDevice.IsOnline == 1); |
| | | deviceRow.SetStatuText(deviceUI.GetDeviceStatu()); |
| | | deviceRow.HideSwitchBtn(true); |
| | | deviceTypeRowLayout.AddChidren(deviceRow); |
| | | |
| | | var editBtn = new CommonForm.RowLayoutEditButton() |
| | | { |
| | |
| | | TextID = MyInternationalizationString.logictemplate, |
| | | Gravity = Gravity.CenterVertical, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSelectedColor, |
| | | TextSize=15, |
| | | }; |
| | | bjFrameLayout.AddChidren(recommendtextBtn); |
| | | |
| | |
| | | Y = Application.GetRealHeight(246 - 23 - 80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 14, |
| | | }; |
| | | frameLayout.AddChidren(logicnameBtn); |
| | | |
| | |
| | | Y = Application.GetRealHeight(30), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | logicRowlayout.AddChidren(logicnameBtn); |
| | | |
| | |
| | | } |
| | | else if (targetDevice.Type == 2) |
| | | { |
| | | if(targetDevice.DelayTime<60) |
| | | { |
| | | devNameText = $"{targetDevice.DelayTime} {Language.StringByID(R.MyInternationalizationString.Second)}"; |
| | | } |
| | | else |
| | | { |
| | | devNameText = $"{targetDevice.DelayTime / 60} {Language.StringByID(R.MyInternationalizationString.Minute)} {targetDevice.DelayTime % 60} {Language.StringByID(R.MyInternationalizationString.Second)}"; |
| | | } |
| | | devNameText = CommonFormResouce.GetTimeString(targetDevice.DelayTime); |
| | | devNameText += Language.StringByID(R.MyInternationalizationString.Later); |
| | | var targetRow = new SceneTargetTimeRow(23); |
| | | targetRowLayout.AddChidren(targetRow); |
| | |
| | | /// <returns></returns> |
| | | public static string GetTimeString(int second) |
| | | { |
| | | string tStr; |
| | | if (second / 3600 > 0) |
| | | string timeStr=string.Empty; |
| | | int hour = second / 3600; |
| | | int minu = second % 3600 / 60; |
| | | int sec = second % 60; |
| | | if (hour > 0) |
| | | { |
| | | tStr = $"{second / 3600}{Language.StringByID(R.MyInternationalizationString.Hour)}"; |
| | | timeStr += $"{hour}{Language.StringByID(R.MyInternationalizationString.Hour)}"; |
| | | if (minu>0) |
| | | { |
| | | timeStr += $"{minu}{Language.StringByID(R.MyInternationalizationString.Minute)}"; |
| | | } |
| | | if(sec>0) |
| | | { |
| | | timeStr += $"{sec}{Language.StringByID(R.MyInternationalizationString.Second)}"; |
| | | } |
| | | return timeStr; |
| | | } |
| | | else if (second / 60 > 0) |
| | | else if (minu > 0) |
| | | { |
| | | tStr = $"{second / 60}{Language.StringByID(R.MyInternationalizationString.Minute)}"; |
| | | timeStr += $"{minu}{Language.StringByID(R.MyInternationalizationString.Minute)}"; |
| | | if(sec>0) |
| | | { |
| | | timeStr += $"{sec}{Language.StringByID(R.MyInternationalizationString.Second)}"; |
| | | } |
| | | return timeStr; |
| | | } |
| | | else |
| | | { |
| | | tStr = $"{second}{Language.StringByID(R.MyInternationalizationString.Second)}"; |
| | | return $"{sec}{Language.StringByID(R.MyInternationalizationString.Second)}"; |
| | | } |
| | | return tStr; |
| | | } |
| | | } |
| | | |
| | |
| | | this.AddChidren(topRowLayout); |
| | | |
| | | var titleName = new Button { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.timecondition), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize=15, |
| | | }; |
| | | timerow.AddChidren(btntime); |
| | | |
| | |
| | | TextID = MyInternationalizationString.device, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | devicerow.AddChidren(btndevice); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.security, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | securityrow.AddChidren(btnsecurity); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.location, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | locationrow.AddChidren(btnlocation); |
| | | |
| | |
| | | X = Application.GetRealWidth(60), |
| | | TextID = MyInternationalizationString.automation, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | existencerowlayout.AddChidren(btnexistence); |
| | | |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.logicathomegarrison, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | athomedefenceRowLayout.AddChidren(btnathomedefence); |
| | | |
| | |
| | | TextID = MyInternationalizationString.logicremovehomegarrison, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | leavehomedefenceRowLayout.AddChidren(leavehomebtndefence); |
| | | var leavehomedefenceSelected = new SelectedButton(); |
| | |
| | | TextID = MyInternationalizationString.withdrawal, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | withdrawalRowLayout.AddChidren(btnwithdrawal); |
| | | var withdrawalSelected = new SelectedButton(); |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | typeRow.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | typeRow.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.athome, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | |
| | | |
| | | }; |
| | |
| | | TextID = MyInternationalizationString.leavehome, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | leavehomeRowLayout.AddChidren(btnleavehome); |
| | | var leavehomeSelected = new SelectedButton(); |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | //Text="立即执行", |
| | | TextSize = 14, |
| | | }; |
| | | timerow.AddChidren(Btntimepoint); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | //Text = "时间范围", |
| | | TextSize = 14, |
| | | }; |
| | | time1row.AddChidren(Btntime); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | }; |
| | | this.AddChidren(saveframeLayout); |
| | | |
| | | var btnsave = new Button |
| | | var btnsave = new Button |
| | | { |
| | | X = Application.GetRealWidth(85), |
| | | Height = Application.GetRealHeight(130), |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveframeLayout.AddChidren(btnsave); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | sceneRow.AddChidren(scenename); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | Text = Common.Logic.CurrentLogic.LogicCustomPushText, |
| | | TextSize = 14, |
| | | }; |
| | | middle.AddChidren(textBox); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.confrim, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | }; |
| | | TextSize = 16, |
| | | }; |
| | | middle.AddChidren(btnsave); |
| | | |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | middle.AddChidren(btnsave); |
| | | |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.executeonce), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | onceRow.AddChidren(onceTextBtn); |
| | | |
| | |
| | | TextID = MyInternationalizationString.everyday, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | everydayRow.AddChidren(everydayTxetBtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.weekly, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | weekRow.AddChidren(weekTextBtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.monthly, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | monthlyRow.AddChidren(monthlyTextBtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.everyyear, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | yearRow.AddChidren(yearTextBtn); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Y = blancolor.Bottom + Application.GetRealHeight(50), |
| | | TextID =MyInternationalizationString.createtimetext, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | |
| | | }; |
| | | middle.AddChidren(titleText); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | deviceRow.AddChidren(devicename); |
| | | switch (common.CommonDevice.Type) |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(50), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Height = Application.GetRealHeight(180), |
| | | //SelectedBackgroundColor = 0xfffe5e00, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(180), |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | Text = Language.StringByID(MyInternationalizationString.OnOffSwitch) + common.DeviceEpoint.ToString(), |
| | | TextSize = 14, |
| | | //SelectedBackgroundColor = 0xfffe5e00, |
| | | }; |
| | | buttonRow.AddChidren(button); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(80), |
| | | Y = timetype.Bottom + Application.GetRealHeight(70), |
| | | TextSize = 14, |
| | | }; |
| | | devicefra.AddChidren(Btntemperaturevalue); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextID = MyInternationalizationString.device, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize=15, |
| | | }; |
| | | devicerow.AddChidren(btndevice); |
| | | |
| | |
| | | TextID = MyInternationalizationString.scene, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | sceneRowLayout.AddChidren (scene); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.securitymode, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | securityrow.AddChidren(btnsecurity); |
| | | |
| | |
| | | Width = Application.GetRealWidth(400), |
| | | TextID = MyInternationalizationString.Alreadyautomated, |
| | | //Text = "已有自动化", |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(40), |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = MyInternationalizationString.delayed, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | delayedRowLayout.AddChidren(delayed); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextID = MyInternationalizationString.device, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | devicerow.AddChidren(btndevice); |
| | | |
| | |
| | | TextID = MyInternationalizationString.scene, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | sceneRowLayout.AddChidren(scene); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | Height = Application.GetRealHeight(130), |
| | | Tag = Send.LockList[i], |
| | | TextSize = 14, |
| | | }; |
| | | userRow.AddChidren(usernameBtn); |
| | | |
| | |
| | | { |
| | | Height = Application.GetRealHeight(140), |
| | | LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | |
| | | }; |
| | | lockcolorfra1.AddChidren(lockRow); |
| | | var Btncancel = new Button |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | lockRow.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | lockRow.AddChidren(Btncomplete); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | Text = userIdmode.ModeName, |
| | | TextSize = 14, |
| | | }; |
| | | doorlockRow.AddChidren(doorlockBtn); |
| | | //(0按键/3卡/15指纹) |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | deviceRow.AddChidren(devicename); |
| | | switch (common.CommonDevice.Type) |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(50), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveframeLayout.AddChidren(btnsave); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | sceneRow.AddChidren(scenename); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextID = MyInternationalizationString.automationname, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Y = Application.GetRealHeight(35), |
| | | TextSize = 15, |
| | | }; |
| | | logicnamefl.AddChidren(text); |
| | | |
| | |
| | | X = text.Right, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 13, |
| | | TextSize = 14, |
| | | Text = Common.Logic.CurrentLogic.LogicName, |
| | | //TextID=MyInternationalizationString.automation1, |
| | | }; |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }); |
| | | |
| | |
| | | var addtextbtn = new Button |
| | | { |
| | | Height = Application.GetRealHeight(58), |
| | | Width = Application.GetRealWidth(300), |
| | | Width = Application.GetRealWidth(500), |
| | | Y = Application.GetRealHeight(45 + 30), |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.selectunlockingmode, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(btndevice); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(400), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }; |
| | | targetRowLayout.AddChidren(btntargettitle); |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.lockaddaction, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | EventHandler<MouseEventArgs> addfunctionclick = (sender, e) => |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(btndevicename); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(450), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = sceneinof.Name, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(btndevicename); |
| | | |
| | |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextID = MyInternationalizationString.pushswitch, |
| | | TextSize = 14, |
| | | }; |
| | | pushswitchRowlayout.AddChidren(btnswitchtxet); |
| | | |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 14, |
| | | }; |
| | | custompushRowLayout.AddChidren(btncustompush); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveFrameLayout.AddChidren(btnsave); |
| | | btnsave.MouseUpEventHandler += async (sender, e) => |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 15, |
| | | }; |
| | | logicRowlayout.AddChidren(logicnameBtn); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | middle.AddChidren(saveBtn); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Tag = intvalue, |
| | | TextSize = 14, |
| | | }; |
| | | timeRow.AddChidren(timeBtn); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveFrameLayout.AddChidren(btnsave); |
| | | btnsave.MouseUpEventHandler += (sender, e) => |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextID = MyInternationalizationString.automationname, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Y = Application.GetRealHeight(35), |
| | | TextSize = 15, |
| | | }; |
| | | logicnamefl.AddChidren(text); |
| | | |
| | |
| | | X = text.Right, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 13, |
| | | TextSize = 14, |
| | | Text = Common.Logic.CurrentLogic.LogicName, |
| | | //TextID=MyInternationalizationString.automation1, |
| | | }; |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.addconditions, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Gravity = Gravity.CenterVertical, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(timevalue); |
| | | |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | X = conditionsRowLayout.Width - Application.GetRealWidth(400), |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(timeTxet); |
| | | |
| | |
| | | Text = conditions["StartHour"] + ":" + s1 + "-" + conditions["StopHour"] + ":" + s2, |
| | | //TextColor = 0xff121212, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(timevalue); |
| | | var timeTxet = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | X = conditionsRowLayout.Width - Application.GetRealWidth(400), |
| | | TextID = MyInternationalizationString.timeframe, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(timeTxet); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(btndevice); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(400), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | Text = logicinof.LogicName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | //TextColor = 0xff121212, |
| | | }; |
| | | conditionsRowLayout.AddChidren(btnlogic); |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(500), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(logicstatus); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | //TextColor = 0xff121212, |
| | | TextID = MyInternationalizationString.security, |
| | | TextSize = 14, |
| | | }; |
| | | //conditionsRowLayout.AddChidren(btnsecurity); |
| | | |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(securitystatus); |
| | | |
| | |
| | | break; |
| | | case 7: |
| | | { |
| | | |
| | | conditionIcon.UnSelectedImagePath = "ZigeeLogic/position.png"; |
| | | var btnlocation = new Button |
| | | { |
| | | Width = Application.GetRealWidth(700), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Gravity = Gravity.CenterVertical, |
| | | //Text = "地理位置", |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | //TextColor = 0xff121212, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextID = MyInternationalizationString.geographicalposition, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(btnlocation); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(500), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(locationstatus); |
| | | foreach (var radius in Common.Logic.CurrentLogic.Accounts) |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }; |
| | | targetRowLayout.AddChidren(btntargettitle); |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.addfunction, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | EventHandler<MouseEventArgs> addfunctionclick = (sender, e) => |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(btndevicename); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(450), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = sceneinof.Name, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(btndevicename); |
| | | |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | Text = logicinof.LogicName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | //TextColor = 0xff121212, |
| | | }; |
| | | actionsrowLayout.AddChidren(btnlogic); |
| | |
| | | X = Application.GetRealWidth(1080 - 330), |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(logicstatus); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | //TextColor = 0xff121212, |
| | | TextID = MyInternationalizationString.security, |
| | | TextSize = 14, |
| | | }; |
| | | //actionsrowLayout.AddChidren(btnsecurity); |
| | | |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(securitystatus); |
| | | |
| | |
| | | Width = Application.GetRealWidth(500), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(delaytimeBtn); |
| | | if (Minutes != 0) |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 14, |
| | | }; |
| | | weekRowLayout.AddChidren(settxet); |
| | | var btnweektext = new Button |
| | |
| | | TextID = MyInternationalizationString.everyday, |
| | | Y = Application.GetRealHeight(35), |
| | | X = settxet.Right, |
| | | TextSize = 14, |
| | | }; |
| | | weekRowLayout.AddChidren(btnweektext); |
| | | |
| | |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextID = MyInternationalizationString.pushswitch, |
| | | TextSize = 14, |
| | | }; |
| | | pushswitchRowlayout.AddChidren(btnswitchtxet); |
| | | |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 14, |
| | | }; |
| | | custompushRowLayout.AddChidren(btncustompush); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize=16, |
| | | }; |
| | | saveFrameLayout.AddChidren(btnsave); |
| | | btnsave.MouseUpEventHandler += async (sender, e) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.Allconditions, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | androw.AddChidren(andbtn); |
| | |
| | | TextID = MyInternationalizationString.anycondition, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | orrow.AddChidren(orbtn); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | deviceRow.AddChidren(devicename); |
| | | switch (common.CommonDevice.Type) |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(50), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Text = user.UserName, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | userRow.AddChidren(userBtn); |
| | | |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | lockRow.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | lockRow.AddChidren(Btncomplete); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | Text= userifon.ModeName, |
| | | TextSize = 14, |
| | | }; |
| | | doorlockRow.AddChidren(doorlockBtn); |
| | | //(1按键/3卡/15指纹) |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.logicathomegarrison), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | |
| | | }; |
| | | athomedefenceRowLayout.AddChidren(btnathomedefence); |
| | | var athomedefenceSelected = new SelectedButton(789); |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.logicremovehomegarrison), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | |
| | | }; |
| | | leavehomedefenceRowLayout.AddChidren(leavehomebtndefence); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextID = MyInternationalizationString.withdrawal, |
| | | TextSize = 15, |
| | | |
| | | }; |
| | | withdrawalRowLayout.AddChidren(btnwithdrawal); |
| | |
| | | TextID = MyInternationalizationString.urgentwithdrawal, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | urgentwithdrawalRowLayout.AddChidren(btnurgentwithdrawal); |
| | | |
| | |
| | | |
| | | public static async System.Threading.Tasks.Task<string> ReadUserList(string doorlockMac) |
| | | { |
| | | string s = null; |
| | | string s = null; |
| | | var str = await WebClientAsync(0, CommonPage.RequestHttpsHost+"/App/GetHomePager");//不同区域域名前缀不一样 |
| | | // var str = await WebClientAsync(0, "https://global.hdlcontrol.com/HangZhouHdlCloudApi/App/GetHomePager"); |
| | | var jObject = JObject.Parse(str); |
| | |
| | | } |
| | | return s; |
| | | } |
| | | |
| | | |
| | | public static async System.Threading.Tasks.Task<string> ReadUserDoorLock(Residential residential) |
| | | { |
| | | |
| | |
| | | if (value == 0) |
| | | { |
| | | postValues.Add("RequestVersion", CommonPage.RequestVersion); |
| | | postValues.Add("ReqDto.LoginAccessToken", Config.Instance.Token);
|
| | | postValues.Add("ReqDto.LoginAccessToken", Config.Instance.Token); |
| | | postValues.Add("ReqDto.PageSetting.PageSize", Int32.MaxValue.ToString());// |
| | | |
| | | } |
| | |
| | | postValues.Add("LoginAccessToken", residential.Token); |
| | | postValues.Add("HomeId", residential.Id); |
| | | postValues.Add("DoorLockId", residential.doorlockmac);//门锁Mac |
| | | postValues.Add("IsOtherAccountCtrl", residential.IsOtherAccountCtrl.ToString());
|
| | | postValues.Add("IsOtherAccountCtrl", residential.IsOtherAccountCtrl.ToString()); |
| | | postValues.Add("PageSetting.PageSize", Int32.MaxValue.ToString()); |
| | | } |
| | | System.Net.WebClient webClient = new System.Net.WebClient(); |
| | |
| | | public string doorlockmac; |
| | | } |
| | | |
| | | public class MembershipIfon |
| | | public class MembershipIfon |
| | | { |
| | | /// <summary> |
| | | /// 识别用户身份 |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 门锁列表 |
| | | /// </summary> |
| | | public static List<MembershipIfon> LockList = new List<MembershipIfon>(); |
| | | |
| | | /// <summary> |
| | | /// 当前门锁 |
| | | /// </summary> |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | //TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | deviceRow.AddChidren(devicename); |
| | | switch (common.CommonDevice.Type) |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(50), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | takebackrowlayout.AddChidren(btntakeback); |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(160), |
| | |
| | | Y = Application.GetRealHeight(92), |
| | | // TextID = MyInternationalizationString.customroom, |
| | | Text = Config.Instance.Home.GetCurrentFloorName, |
| | | TextSize = 14, |
| | | }; |
| | | topRowLayout.AddChidren(foolrname); |
| | | var dropdown = new Button |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | X = Application.GetRealWidth(80), |
| | | TextID = MyInternationalizationString.selecfoolr, |
| | | TextSize = 14, |
| | | }; |
| | | foolrbjicon.AddChidren(btnfoolrtext); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | Tag = foolr.Key, |
| | | X = btnfoolricon.Right + Application.GetRealWidth(12), |
| | | TextSize = 14, |
| | | }; |
| | | foolrRowLayout.AddChidren(btnfoolrname); |
| | | if (foolrname.Text == foolr.Value) |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |
| | | TextSize = 14, |
| | | }; |
| | | deviceRow.AddChidren(devicename); |
| | | switch (common.CommonDevice.Type) |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(50), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | } |
| | | switch (common.Type) |
| | | { |
| | | ///灯光 |
| | | case DeviceType.OnOffOutput: |
| | | { |
| | | dictionary(deviceConditionsInfo, "Cluster_ID", "6"); |
| | | dictionary(deviceConditionsInfo, "AttriButeId", "0"); |
| | | dictionary(deviceConditionsInfo, "Range", "1"); |
| | | dictionary(deviceConditionsInfo, "AttriButeData2", "0"); |
| | | |
| | | #region 灯光View |
| | | |
| | | |
| | | |
| | | var openframelayout = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(160), |
| | | Y = timetype.Bottom + Application.GetRealHeight(20), |
| | | }; |
| | | devicefra.AddChidren(openframelayout); |
| | | |
| | | var openrowlayout = new RowLayout |
| | | { |
| | | Y = Application.GetRealHeight(30), |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(130), |
| | | X = Application.GetRealWidth(80), |
| | | LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | }; |
| | | openframelayout.AddChidren(openrowlayout); |
| | | |
| | | var btnopen = new Button |
| | | { |
| | | Width = Application.GetRealWidth(600), |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | | var openBtnSelected = new SelectedButton(); |
| | | openrowlayout.AddChidren(openBtnSelected); |
| | | |
| | | |
| | | var closeframelayout = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(160), |
| | | Y = openframelayout.Bottom, |
| | | }; |
| | | devicefra.AddChidren(closeframelayout); |
| | | var closerowlayout = new RowLayout |
| | | { |
| | | Y = Application.GetRealHeight(30), |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(130), |
| | | X = Application.GetRealWidth(80), |
| | | LineColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | }; |
| | | closeframelayout.AddChidren(closerowlayout); |
| | | |
| | | var btnclose = new Button |
| | | { |
| | | //Text = "关", |
| | | TextID = MyInternationalizationString.close, |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | | var closeBtnSelected = new SelectedButton(); |
| | | closerowlayout.AddChidren(closeBtnSelected); |
| | | #endregion |
| | | |
| | | ///点击确认事件 |
| | | EventHandler<MouseEventArgs> openclick = (sender, e) => |
| | | { |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | btnopen.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | btnclose.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | SelectedDeviceStatuscondition = "OnOffOutput"; |
| | | dictionary(deviceConditionsInfo, "AttriButeData1", "1");//默认值 |
| | | |
| | | |
| | | }; |
| | | openrowlayout.MouseUpEventHandler += openclick; |
| | | btnopen.MouseUpEventHandler += openclick; |
| | | openBtnSelected.MouseUpEventHandler += openclick; |
| | | openframelayout.MouseUpEventHandler += openclick; |
| | | ///点击取消事件 |
| | | EventHandler<MouseEventArgs> closeclick = (sender, e) => |
| | | { |
| | | btnopen.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | btnclose.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | SelectedDeviceStatuscondition = "OnOffOutput"; |
| | | dictionary(deviceConditionsInfo, "AttriButeData1", "0");//默认值 |
| | | |
| | | }; |
| | | closerowlayout.MouseUpEventHandler += closeclick; |
| | | btnclose.MouseUpEventHandler += closeclick; |
| | | closeBtnSelected.MouseUpEventHandler += closeclick; |
| | | closeframelayout.MouseUpEventHandler += closeclick; |
| | | if (edit && devices != null) |
| | | { |
| | | if (devices["AttriButeId"] == "0") |
| | | { |
| | | if (devices["AttriButeData1"] == "1") |
| | | { |
| | | btnopen.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | btnclose.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | } |
| | | else |
| | | { |
| | | btnopen.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | btnclose.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | break; |
| | | case DeviceType.WindowCoveringDevice: |
| | | { |
| | | |
| | | dictionary(deviceConditionsInfo, "Cluster_ID", "258"); |
| | | dictionary(deviceConditionsInfo, "AttriButeId", "8"); |
| | | dictionary(deviceConditionsInfo, "Range", "0"); |
| | | dictionary(deviceConditionsInfo, "AttriButeData2", "0"); |
| | | |
| | | #region 窗帘View |
| | | devicefra.Y = Application.GetRealHeight(1920 - 30 - 720); |
| | | devicefra.Height = Application.GetRealHeight(720); |
| | | var windowCoveringfra = new FrameLayout |
| | | { |
| | | Y = Application.GetRealHeight(180), |
| | | Height = Application.GetRealHeight(180 * 2 + 30), |
| | | }; |
| | | devicefra.AddChidren(windowCoveringfra); |
| | | |
| | | var openrowlayout = new RowLayout |
| | | { |
| | | Height = Application.GetRealHeight(180), |
| | | }; |
| | | windowCoveringfra.AddChidren(openrowlayout); |
| | | |
| | | var btnopen = new Button |
| | | { |
| | | //Text = "开", |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(50), |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(180), |
| | | //SelectedBackgroundColor = 0xfffe5e00, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | | var openBtnSelected = new Button |
| | | { |
| | | X = Application.GetRealWidth(1000 - 150), |
| | | Width = Application.GetMinRealAverage(110), |
| | | Height = Application.GetMinRealAverage(110), |
| | | UnSelectedImagePath = "Item/YesSelected.png", |
| | | Visible = false, |
| | | Gravity = Gravity.CenterVertical |
| | | }; |
| | | openrowlayout.AddChidren(openBtnSelected); |
| | | |
| | | var closerowlayout = new RowLayout |
| | | { |
| | | Y = openrowlayout.Bottom, |
| | | Height = Application.GetRealHeight(180), |
| | | }; |
| | | windowCoveringfra.AddChidren(closerowlayout); |
| | | |
| | | var btnclose = new Button |
| | | { |
| | | //Text = "关", |
| | | TextID = MyInternationalizationString.close, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(50), |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(180), |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | | var closeBtnSelected = new Button |
| | | { |
| | | X = Application.GetRealWidth(1000 - 150), |
| | | Width = Application.GetMinRealAverage(110), |
| | | Height = Application.GetMinRealAverage(110), |
| | | UnSelectedImagePath = "Item/YesSelected.png", |
| | | Visible = false, |
| | | Gravity = Gravity.CenterVertical |
| | | }; |
| | | closerowlayout.AddChidren(closeBtnSelected); |
| | | #endregion |
| | | |
| | | ///点击确认事件 |
| | | EventHandler<MouseEventArgs> openclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatuscondition = "WindowCoveringDevice"; |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | dictionary(deviceConditionsInfo, "AttriButeData1", "95");//默认值 |
| | | |
| | | }; |
| | | openrowlayout.MouseUpEventHandler += openclick; |
| | | btnopen.MouseUpEventHandler += openclick; |
| | | openBtnSelected.MouseUpEventHandler += openclick; |
| | | ///点击取消事件 |
| | | EventHandler<MouseEventArgs> closeclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatuscondition = "WindowCoveringDevice"; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | dictionary(deviceConditionsInfo, "AttriButeData1", "5");//默认值 |
| | | |
| | | }; |
| | | closerowlayout.MouseUpEventHandler += closeclick; |
| | | btnclose.MouseUpEventHandler += closeclick; |
| | | closeBtnSelected.MouseUpEventHandler += closeclick; |
| | | |
| | | if (edit && devices != null) |
| | | { |
| | | if (devices["AttriButeId"] == "8") |
| | | { |
| | | if (int.Parse(devices["AttriButeData1"]) > 5) |
| | | { |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | } |
| | | else |
| | | { |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | break; |
| | | case DeviceType.IASZone: |
| | | { |
| | | |
| | |
| | | TextID = MyInternationalizationString.open, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | closerowlayout.AddChidren(btnclose); |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | } |
| | | break; |
| | | case DeviceType.OnOffSwitch: |
| | | { |
| | | |
| | | dictionary(deviceConditionsInfo, "Cluster_ID", "1282"); |
| | | dictionary(deviceConditionsInfo, "AttriButeId", "1283"); |
| | | dictionary(deviceConditionsInfo, "Range", "0");//按键特殊 |
| | | dictionary(deviceConditionsInfo, "AttriButeData1", "0"); |
| | | dictionary(deviceConditionsInfo, "AttriButeData2", "0"); |
| | | |
| | | devicefra.Y = Application.GetRealHeight(1920 - 140 - 160 - 20 - 50); |
| | | devicefra.Height = Application.GetRealHeight(140 + 160 + 20 + 50); |
| | | var OnOffOutputfra = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(160), |
| | | Y = timetype.Bottom + Application.GetRealHeight(20), |
| | | }; |
| | | devicefra.AddChidren(OnOffOutputfra); |
| | | |
| | | var buttonRow = new RowLayout |
| | | { |
| | | Y = Application.GetRealHeight(30), |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(130), |
| | | X = Application.GetRealWidth(80), |
| | | LineColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | }; |
| | | OnOffOutputfra.AddChidren(buttonRow); |
| | | |
| | | var button = new Button |
| | | { |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | Text = Language.StringByID(MyInternationalizationString.OnOffSwitch) + common.DeviceEpoint.ToString(), |
| | | //SelectedBackgroundColor = 0xfffe5e00, |
| | | }; |
| | | buttonRow.AddChidren(button); |
| | | |
| | | var buttonSelected = new SelectedButton(); |
| | | buttonRow.AddChidren(buttonSelected); |
| | | EventHandler<MouseEventArgs> buttonclick = (sender, e) => |
| | | { |
| | | buttonSelected.Visible = true; |
| | | SelectedDeviceStatuscondition = "OnOffSwitch"; |
| | | button.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | |
| | | }; |
| | | buttonRow.MouseUpEventHandler += buttonclick; |
| | | button.MouseUpEventHandler += buttonclick; |
| | | buttonSelected.MouseUpEventHandler += buttonclick; |
| | | OnOffOutputfra.MouseUpEventHandler += buttonclick; |
| | | |
| | | if (edit && devices != null) |
| | | { |
| | | buttonSelected.Visible = true; |
| | | button.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | } |
| | | |
| | | } |
| | | break; |
| | | case DeviceType.DoorLock: |
| | | { |
| | | flMain.RemoveFromParent(); |
| | | var memberList = new MemberList(); |
| | | UserView.HomePage.Instance.AddChidren(memberList); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | memberList.Show(common); |
| | | } |
| | | break; |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Tag = intvalue, |
| | | TextSize = 15, |
| | | }; |
| | | timeRow.AddChidren(timeBtn); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveFrameLayout.AddChidren(btnsave); |
| | | btnsave.MouseUpEventHandler += (sender, e) => |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | TextID = MyInternationalizationString.automationname, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Y = Application.GetRealHeight(35), |
| | | TextSize = 15, |
| | | }; |
| | | logicnamefl.AddChidren(text); |
| | | |
| | |
| | | X = text.Right, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 13, |
| | | TextSize = 14, |
| | | Text = Common.Logic.CurrentLogic.LogicName, |
| | | //TextID=MyInternationalizationString.automation1, |
| | | }; |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.addconditions, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(btndevice); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(400), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | conditionsRowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | TextSize = 16, |
| | | TextSize = 15, |
| | | Gravity = Gravity.CenterVertical, |
| | | }; |
| | | targetRowLayout.AddChidren(btntargettitle); |
| | |
| | | TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | TextID = MyInternationalizationString.addfunction, |
| | | X = Application.GetRealWidth(390), |
| | | TextSize = 14, |
| | | }; |
| | | addfl.AddChidren(addtextbtn); |
| | | EventHandler<MouseEventArgs> addfunctionclick = (sender, e) => |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(btndevicename); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(450), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | | actionsrowLayout.AddChidren(devicestatus); |
| | | |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 14, |
| | | }; |
| | | weekRowLayout.AddChidren(settxet); |
| | | var btnweektext = new Button |
| | |
| | | TextID = MyInternationalizationString.everyday, |
| | | Y = Application.GetRealHeight(35), |
| | | X = settxet.Right, |
| | | TextSize = 14, |
| | | }; |
| | | weekRowLayout.AddChidren(btnweektext); |
| | | |
| | |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextID = MyInternationalizationString.pushswitch, |
| | | TextSize = 14, |
| | | }; |
| | | pushswitchRowlayout.AddChidren(btnswitchtxet); |
| | | |
| | |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(60), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextSize = 14, |
| | | }; |
| | | custompushRowLayout.AddChidren(btncustompush); |
| | | |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.Allconditions, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | androw.AddChidren(andbtn); |
| | |
| | | TextID = MyInternationalizationString.anycondition, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | orrow.AddChidren(orbtn); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | fra.AddChidren(btnsave); |
| | | #endregion |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.type), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(265) |
| | | Width = Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | }; |
| | | typeRowlayout.AddChidren(btnTypeTextTitle); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextID = MyInternationalizationString.timeframe, |
| | | TextSize = 14, |
| | | }; |
| | | typeRowlayout.AddChidren(btnimmediateexecution); |
| | | |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.starttime), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(265) |
| | | Width = Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timestartrow.AddChidren(btnstarttimetext); |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Tag = "0", |
| | | TextSize = 14, |
| | | }; |
| | | timestartrow.AddChidren(btnstarttime); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timeendrow.AddChidren(btnendtimetext); |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.type), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(265) |
| | | Width = Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | }; |
| | | typeRowlayout.AddChidren(btnTypeTextTitle); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextID=MyInternationalizationString.immediateexecution, |
| | | TextSize = 14, |
| | | }; |
| | | typeRowlayout.AddChidren(btnimmediateexecution); |
| | | |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.moment), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width=Application.GetRealWidth(265) |
| | | Width=Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | }; |
| | | rowSelectedTimeType.AddChidren(btnTimeText); |
| | | |
| | |
| | | Width = Application.GetRealWidth(630), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 14, |
| | | }; |
| | | rowSelectedTimeType.AddChidren(btnTimeTpye); |
| | | |
| | |
| | | Text = Language.StringByID(MyInternationalizationString.Advancedelay), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Width = Application.GetRealWidth(265) |
| | | Width = Application.GetRealWidth(265), |
| | | TextSize = 14, |
| | | }; |
| | | rowDelayType.AddChidren(btnDelayTimeText); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | Text = textvalue, |
| | | TextSize = 14, |
| | | }; |
| | | rowDelayType.AddChidren(btnDelayTime); |
| | | |
| | |
| | | BackgroundColor =ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor= ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | fra.AddChidren(btnsave); |
| | | btnsave.MouseUpEventHandler += (sender, e) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | X = Application.GetRealWidth(80), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | | }; |
| | | timetype.AddChidren(Btncancel); |
| | | Btncancel.MouseUpEventHandler += (sender16, e16) => |
| | |
| | | Width = Application.GetRealWidth(200), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Btntitle.Right + Application.GetRealWidth(100), |
| | | TextSize = 14, |
| | | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | |
| | | TextID = MyInternationalizationString.sunrise, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | sunriseRow.AddChidren(btnsunrisetext); |
| | | |
| | |
| | | TextID = MyInternationalizationString.sunset, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | sunsetRow.AddChidren(btnsunsettext); |
| | | |
| | |
| | | TextID = MyInternationalizationString.noon, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | noonRow.AddChidren(btnnoontext); |
| | | |
| | |
| | | TextID = MyInternationalizationString.logiccustom, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | logiccustomRow.AddChidren(btnlogiccustomtext); |
| | | |
| | |
| | | |
| | | var titleName = new Button |
| | | { |
| | | TextSize = 16, |
| | | TextSize = 17, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize = 16, |
| | | }; |
| | | saveFramelayout.AddChidren(saveBtn); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = name, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextSize = 15, |
| | | }; |
| | | weekRow.AddChidren(weekTextBtn); |
| | | |
| | |
| | | }; |
| | | this.AddChidren(midFl); |
| | | |
| | | for (int i = 0; i < 25; i++) |
| | | |
| | | int k = 1; |
| | | for (int j = 0; j < 2; j++) |
| | | { |
| | | var RoomRowView = new FrameLayout() |
| | | var itemView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(600), |
| | | Width = Application.GetRealWidth(CommonPage.AppRealWidth - CommonPage.XLeft * 2), |
| | | Gravity=Gravity.CenterHorizontal, |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, |
| | | Radius = CommonPage.BigFormRadius, |
| | | Height = Application.GetRealHeight(311 + CommonPage.XLeft) |
| | | }; |
| | | midFl.AddChidren(RoomRowView); |
| | | |
| | | var backGroundBtn = new Button() |
| | | midFl.AddChidren(itemView); |
| | | for (int i = 0; i < 2; i++) |
| | | { |
| | | Y = Application.GetRealHeight(50), |
| | | Width = Application.GetMinRealAverage(CommonPage.AppRealWidth - CommonPage.XLeft * 2), |
| | | Height = Application.GetMinRealAverage(550), |
| | | UnSelectedImagePath = "Room/r" + (i).ToString() + ".png", |
| | | Radius = CommonPage.BigFormRadius, |
| | | Gravity=Gravity.CenterHorizontal |
| | | }; |
| | | RoomRowView.AddChidren(backGroundBtn); |
| | | |
| | | backGroundBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | if (AddRoom.room.BackgroundImageType == 1 || AddRoom.room.BackgroundImageType == 2) |
| | | var icon = new Button() |
| | | { |
| | | AddRoom.OldBackgroundImagePath = AddRoom.room.BackgroundImage; |
| | | } |
| | | //AddRoom.room.BackgroundImage = backGroundBtn.UnSelectedImagePath; |
| | | action?.Invoke(backGroundBtn.UnSelectedImagePath); |
| | | this.RemoveFromParent(); |
| | | }; |
| | | X = Application.GetRealWidth(CommonPage.XLeft + i * (467 + 32)), |
| | | Width = Application.GetMinRealAverage(467), |
| | | Height = Application.GetMinRealAverage(311), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = $"RoomIcon/{k}.JPG", |
| | | }; |
| | | itemView.AddChidren(icon); |
| | | k++; |
| | | |
| | | EventHandler<MouseEventArgs> selectIcon = (sender, e) => |
| | | { |
| | | action?.Invoke(icon.UnSelectedImagePath); |
| | | action = null; |
| | | this.RemoveFromParent(); |
| | | }; |
| | | icon.MouseUpEventHandler += selectIcon; |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | /// IconPathType |
| | | /// </summary> |
| | | public int IconPathType = 0; |
| | | public int IconPathType; |
| | | /// <summary> |
| | | /// OldBackgroundImagePath |
| | | /// </summary> |
| | | private string OldBackgroundImagePath; |
| | | |
| | | /// <summary> |
| | | /// OldIconPathType |
| | | /// </summary> |
| | | public int OldIconPathType; |
| | | |
| | | |
| | | #endregion |
| | | |
| | |
| | | { |
| | | room = r; |
| | | IconPathType = r.BackgroundImageType; |
| | | OldIconPathType= r.BackgroundImageType; |
| | | if (IconPathType != 1) |
| | | { |
| | | OldBackgroundImagePath = r.BackgroundImage; |
| | | } |
| | | AddTop(); |
| | | |
| | | AddBodyView(); |
| | |
| | | var tradeTime = DateTime.Now.ToString("yyyyMMddHHmmss", DateTimeFormatInfo.InvariantInfo); |
| | | var fileName = $"Room_{tradeTime}"; |
| | | room.Name = nameRow.NameText.Text.Trim(); |
| | | if (OldIconPathType != 1) |
| | | { |
| | | Shared.IO.FileUtils.DeleteFile(OldBackgroundImagePath); |
| | | } |
| | | if (IconPathType == 0) |
| | | { |
| | | room.BackgroundImage = backGround.UnSelectedImagePath; |
| | |
| | | } |
| | | room.BackgroundImageType = IconPathType; |
| | | room.Save(); |
| | | action?.Invoke(); |
| | | RemoveFromParent(); |
| | | }; |
| | | |
| | |
| | | /// </summary>
|
| | | private void InitProgressFormBar()
|
| | | {
|
| | | var nowForm = UserView.HomePage.Instance.GetChildren(UserView.HomePage.Instance.ChildrenCount - 1);
|
| | | if (nowForm == null || (nowForm is ViewGroup) == false)
|
| | | {
|
| | | //这种情况应该不存在
|
| | | var alert = new ShowMsgControl(ShowMsgType.Error, "ERROR:Not Found The ActionForm!");
|
| | | alert.Show();
|
| | | return;
|
| | | }
|
| | | //安卓可以点击系统的返回键
|
| | | this.oldScrollEnabled = UserView.HomePage.Instance.ScrollEnabled;
|
| | | UserView.HomePage.Instance.ScrollEnabled = false;
|
| | |
| | | //容器
|
| | | bodyFrameLayout = new FrameLayout();
|
| | | bodyFrameLayout.BackgroundColor = UserCenterColor.Current.DialogBackColor;
|
| | | ((ViewGroup)nowForm).AddChidren(bodyFrameLayout);
|
| | | Common.CommonPage.Instance.AddChidren(bodyFrameLayout);
|
| | |
|
| | | var frameBack = new FrameLayout();
|
| | | frameBack.Width = Application.GetRealWidth(674);
|
| | |
| | | {
|
| | | i_width = Application.GetRealWidth(i_width);
|
| | | }
|
| | | var btnContr = AddMostRightView(i_text, i_width, ControlCommonResourse.NormalControlHeight, false);
|
| | | var btnContr = AddMostRightView(i_text, i_width, this.Height, false);
|
| | | this.AddChidren(btnContr, ChidrenBindMode.BindEventOnly);
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | |
| | | }
|
| | | var btnContr = new NormalViewControl(i_width, i_height, false);
|
| | | btnContr.X = this.Width - ControlCommonResourse.XXLeft - i_width - rightIconSize + RightOffset;
|
| | | btnContr.Height = this.Height;
|
| | | btnContr.Height = i_height;
|
| | | btnContr.TextAlignment = TextAlignment.CenterRight;
|
| | | btnContr.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | btnContr.Text = i_text;
|
| | |
| | | /// <summary>
|
| | | /// 桌布控件
|
| | | /// </summary>
|
| | | private FrameLayout frameTable = null;
|
| | | private FrameLayout m_frameTable = null;
|
| | | /// <summary>
|
| | | /// 桌布控件
|
| | | /// </summary>
|
| | | public FrameLayout frameTable
|
| | | {
|
| | | get
|
| | | {
|
| | | if (m_frameTable == null) { this.InitFrameTable(); }
|
| | | return m_frameTable;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | /// </summary>
|
| | | private void InitFrameTable()
|
| | | {
|
| | | if (this.frameTable != null)
|
| | | if (this.m_frameTable != null)
|
| | | {
|
| | | return;
|
| | | }
|
| | | this.frameTable = new FrameLayout();
|
| | | this.frameTable.Width = this.Width;
|
| | | this.frameTable.Height = this.Height;
|
| | | this.AddChidren(this.frameTable);
|
| | | this.m_frameTable = new FrameLayout();
|
| | | this.m_frameTable.Width = this.Width;
|
| | | this.m_frameTable.Height = this.Height;
|
| | | this.AddChidren(this.m_frameTable);
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | //初始化桌布控件
|
| | | this.InitFrameTable();
|
| | |
|
| | | var child = this.frameTable.GetChildren(this.frameTable.ChildrenCount - 1);
|
| | | var child = this.m_frameTable.GetChildren(this.m_frameTable.ChildrenCount - 1);
|
| | | if (child != null)
|
| | | {
|
| | | frame.Y = child.Bottom + rowSpace;
|
| | | }
|
| | | this.frameTable.AddChidren(frame);
|
| | | this.m_frameTable.AddChidren(frame);
|
| | | //调整桌布高度
|
| | | if (this.frameTable.Height < frame.Bottom)
|
| | | if (this.m_frameTable.Height < frame.Bottom)
|
| | | {
|
| | | this.frameTable.Height = frame.Bottom;
|
| | | this.m_frameTable.Height = frame.Bottom;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | /// </summary>
|
| | | public void AdjustTableHeight()
|
| | | {
|
| | | var child = this.frameTable?.GetChildren(this.frameTable.ChildrenCount - 1);
|
| | | var child = this.m_frameTable?.GetChildren(this.m_frameTable.ChildrenCount - 1);
|
| | | if (child != null)
|
| | | {
|
| | | //调整桌布高度
|
| | | if (this.frameTable.Height < child.Bottom)
|
| | | {
|
| | | this.frameTable.Height = child.Bottom;
|
| | | }
|
| | | this.m_frameTable.Height = child.Bottom;
|
| | | //if (this.m_frameTable.Height < child.Bottom)
|
| | | //{
|
| | | // this.m_frameTable.Height = child.Bottom;
|
| | | //}
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | public void AdjustRealHeightByBottomButton(int correctionsValue = 0)
|
| | | {
|
| | | var btnTemp = new BottomClickButton();
|
| | | if (btnTemp.Yaxis >= this.frameTable.Height + correctionsValue)
|
| | | if (btnTemp.Yaxis >= this.m_frameTable.Height + correctionsValue)
|
| | | {
|
| | | //没有超过
|
| | | return;
|
| | |
| | | if (this.dicRowInfo.ContainsKey(deviceAddr) == false)
|
| | | {
|
| | | var localDevice = Common.LocalDevice.Current.GetDevicesByMac(deviceAddr);
|
| | | if (localDevice.Count == 0)
|
| | | {
|
| | | //入网之后,又把它删了
|
| | | return;
|
| | | }
|
| | | var rowNewInfo = new DeviceObjRowInfo();
|
| | | rowNewInfo.DeviceMac = deviceAddr;
|
| | | rowNewInfo.MacName = Common.LocalDevice.Current.GetDeviceMacName(localDevice[0]);
|
| | |
| | |
|
| | | //创建新的行
|
| | | this.AddDeviceMenuRow(deviceAddr);
|
| | |
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | btnNewVersion.UnSelectedImagePath = "Item/NewVersion.png";
|
| | | btnNewVersion.Visible = false;
|
| | | btnNewVersion.X = Application.GetRealWidth(242);
|
| | | btnNewVersion.Y= Application.GetRealHeight(23);
|
| | | btnNewVersion.Y = Application.GetRealHeight(23);
|
| | | rowUpDate.AddChidren(btnNewVersion, ChidrenBindMode.BindEventOnly);
|
| | |
|
| | | rowUpDate.ButtonClickEvent += (sender, e) =>
|
| | |
| | | /// 设备重命名
|
| | | /// </summary>
|
| | | /// <param name="i_deviceName">deviceName.</param>
|
| | | private async void DeviceReName(string i_deviceName,bool closeForm)
|
| | | private async void DeviceReName(string i_deviceName, bool closeForm)
|
| | | {
|
| | | //开启进度条
|
| | | this.ShowProgressBar();
|
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取门锁包含设备信息和账户信息 |
| | | /// 获取所有账户和门锁包含的信息 |
| | | /// </summary> |
| | | public static async System.Threading.Tasks.Task<Dictionary<int, LocaDoorLockObj>> GetDoorLockAllAcountUserlist(ZigBee.Device.DoorLock doorLock) |
| | | { |
| | | return await System.Threading.Tasks.Task.Run((Func<System.Threading.Tasks.Task<Dictionary<int, LocaDoorLockObj>>>)(async () => |
| | | { |
| | | doorLock.localDoorLockUserList.Clear(); |
| | | //1、读取门锁信息 |
| | | var getDoorLockInfo = await doorLock.GetDoorlockUserInfoAsync(); |
| | | |
| | | //本地门锁列表处理 |
| | | foreach (var curAccountObj in doorLock.localAllAccountList) |
| | | { |
| | | if (getDoorLockInfo == null) |
| | | { |
| | | doorLock.IsFailedToGetDoorLockInfo[curAccountObj.SubAccountDistributedMark] = true; |
| | | } |
| | | else |
| | | { |
| | | doorLock.IsFailedToGetDoorLockInfo[curAccountObj.SubAccountDistributedMark] = false; |
| | | } |
| | | } |
| | | // 用户信息处理 |
| | | if (getDoorLockInfo != null && getDoorLockInfo.doorLockUserDetailData != null) |
| | | { |
| | | var dataList = getDoorLockInfo.doorLockUserDetailData.UserObjList; |
| | | foreach (var doorData in dataList) |
| | | { |
| | | var localDoorLockObj1 = new ZigBee.Device.DoorLock.LocaDoorLockObj() |
| | | { |
| | | UserID = doorData.UserId, |
| | | UnlockType = doorData.UserType |
| | | }; |
| | | if ((doorLock.localDoorLockUserList.ContainsKey(localDoorLockObj1.UserID)) == false) |
| | | { |
| | | doorLock.localDoorLockUserList.Add(localDoorLockObj1.UserID, localDoorLockObj1); |
| | | } |
| | | } |
| | | //2、读取云端门锁信息 |
| | | var getDoorLockInfoList = await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetDoorLockAllAccountInfolist(doorLock); |
| | | if (getDoorLockInfoList != null) |
| | | { |
| | | foreach (var curDoorLockUser in getDoorLockInfoList.PageData) |
| | | { |
| | | if (curDoorLockUser.DoorLockLocalUserId == null || curDoorLockUser.DoorLockLocalUserId == "") |
| | | { |
| | | continue; |
| | | } |
| | | if (doorLock.localDoorLockUserList.ContainsKey(int.Parse(curDoorLockUser.DoorLockLocalUserId))) |
| | | { |
| | | var doorLockObj = new ZigBee.Device.DoorLock.LocaDoorLockObj() { }; |
| | | doorLockObj.UserID = int.Parse(curDoorLockUser.DoorLockLocalUserId); |
| | | doorLockObj.UnlockType = curDoorLockUser.OpenLockMode; |
| | | doorLockObj.PrimaryId = curDoorLockUser.Id; |
| | | doorLockObj.EntryTime = curDoorLockUser.EntryTime; |
| | | doorLockObj.UserName = curDoorLockUser.UserIdRemarks; |
| | | doorLockObj.ConnectedAccount = curDoorLockUser.CloudAccountId; |
| | | doorLock.localDoorLockUserList[int.Parse(curDoorLockUser.DoorLockLocalUserId)] = doorLockObj; |
| | | } |
| | | else |
| | | { |
| | | if (curDoorLockUser.DoorLockLocalUserId != null) |
| | | { |
| | | //门锁中没有,云端有用户ID,后台删除云端这些ID |
| | | var deleteDoorLockData = new ZigBee.Device.DoorLock.DeleteDoorLockData(); |
| | | if (UserCenterResourse.UserInfo.AuthorityNo != 1) |
| | | { |
| | | deleteDoorLockData.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); |
| | | deleteDoorLockData.IsOtherAccountCtrl = true; |
| | | } |
| | | if (doorLock.DeviceAddr != null) |
| | | { |
| | | deleteDoorLockData.DoorLockId = doorLock.DeviceAddr + "_" + doorLock.DeviceEpoint; |
| | | } |
| | | deleteDoorLockData.DoorLockLocalUserId = curDoorLockUser.DoorLockLocalUserId; |
| | | deleteDoorLockData.PrimaryId = curDoorLockUser.Id; |
| | | deleteDoorLockData.DelDoorLockDelType = 2; |
| | | var result = await ZigBee.Device.DoorLock.SendDoorLockToServer("DoorLock/DelDoorLock", deleteDoorLockData); |
| | | } |
| | | } |
| | | } |
| | | doorLock.ReSave(); |
| | | } |
| | | } |
| | | return doorLock.localDoorLockUserList; |
| | | })); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取当前账户中门锁信息 |
| | | /// </summary> |
| | | public static async System.Threading.Tasks.Task<Dictionary<int, LocaDoorLockObj>> GetLocaDoorLocklist(ZigBee.Device.DoorLock doorLock, Shared.Phone.UserCenter.MemberInfoRes curAccountObj) |
| | | { |
| | | return await System.Threading.Tasks.Task.Run((Func<System.Threading.Tasks.Task<Dictionary<int, LocaDoorLockObj>>>)(async () => |
| | | { |
| | | // 读取设备中的信息 |
| | | //读取设备中的信息 |
| | | doorLock.localDoorLockUserList.Clear(); |
| | | var getDoorLockInfo = await doorLock.GetDoorlockUserInfoAsync(); |
| | | if (getDoorLockInfo == null) |
| | | { |
| | | doorLock.IsFailedToGetDoorLockInfo[curAccountObj.SubAccountDistributedMark] = true; |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取云端存储的门锁信息 |
| | | /// 获取当前账户中云端存储的门锁信息 |
| | | /// </summary> |
| | | public static async System.Threading.Tasks.Task<Dictionary<int, LocaDoorLockObj>> GetCloudLocalDoorLocklist(ZigBee.Device.DoorLock doorLock, string subAccountDistributedMark) |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取云端存储的当前账户的门锁信息 |
| | | /// 获取云端存储的当前账户的门锁信 |
| | | /// </summary> |
| | | public static async System.Threading.Tasks.Task<List<ZigBee.Device.DoorLock.CloudDoorLockObj>> GetAccountDoorLockUserList(ZigBee.Device.DoorLock doorLock, string subAccountDistributedMark) |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取当前账户门锁的所有信息 |
| | | /// </summary> |
| | | public static async System.Threading.Tasks.Task<ZigBee.Device.DoorLock.GetDoorLockDataRes> GetDoorLockAllAccountInfolist(ZigBee.Device.DoorLock doorLock) |
| | | { |
| | | return await System.Threading.Tasks.Task.Run((Func<System.Threading.Tasks.Task<ZigBee.Device.DoorLock.GetDoorLockDataRes>>)(async () => |
| | | { |
| | | // 读取云端门锁设备中的信息 |
| | | var localDoorLockObj = new ZigBee.Device.DoorLock.GetDoorLockData() { }; |
| | | |
| | | if (UserCenterResourse.UserInfo.AuthorityNo != 1) |
| | | { |
| | | localDoorLockObj.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); |
| | | localDoorLockObj.IsOtherAccountCtrl = true; |
| | | } |
| | | if (doorLock.DeviceAddr != null) |
| | | { |
| | | localDoorLockObj.DoorLockId = doorLock.DeviceAddr + "_" + doorLock.DeviceEpoint; |
| | | } |
| | | |
| | | var getDoorLockInfoList = await ZigBee.Device.DoorLock.GetDoorLockInfoFromServer("DoorLock/GetDoorLockPager", localDoorLockObj); |
| | | return getDoorLockInfoList; |
| | | })); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取云端存储的门锁成员信息 |
| | | /// </summary> |
| | | public static async System.Threading.Tasks.Task<Dictionary<int, LocaDoorLockObj>> GetLocaDoorLockAccountlist(ZigBee.Device.DoorLock doorLock, Shared.Phone.UserCenter.MemberInfoRes curAccountObj) |
| | |
| | | Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); }); |
| | | try |
| | | { |
| | | await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, accountObj); |
| | | //await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, accountObj); |
| | | } |
| | | catch { } |
| | | finally |
| | |
| | | Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); }); |
| | | try |
| | | { |
| | | await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, curAccountObj); |
| | | //await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, curAccountObj); |
| | | } |
| | | catch { } |
| | | finally |
| | |
| | | Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); }); |
| | | try |
| | | { |
| | | await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, curAccountObj); |
| | | var list = await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetDoorLockAllAcountUserlist(doorLock); |
| | | if (doorLock.IsFailedToGetDoorLockInfo[curAccountObj.SubAccountDistributedMark] == true) |
| | | { |
| | | //数据如果在门锁上面是空的时候,数据也是没有的 |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.GwResponseOvertime), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance); |
| | | }); |
| | | } |
| | | } |
| | | catch { } |
| | | finally |
| | |
| | | { |
| | | if (doorLock.IsFreezeAccount[curAccountObj.SubAccountDistributedMark] == true) |
| | | { |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.AccountIsFreezed), Direction = AMPopTipDirection.None , CloseTime = 1 }.Show(Common.CommonPage.Instance); |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.AccountIsFreezed), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance); |
| | | } |
| | | else |
| | | { |
| | |
| | | Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); }); |
| | | try |
| | | { |
| | | //await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, curAccountObj); |
| | | var list = await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetDoorLockAllAcountUserlist(doorLock); |
| | | } |
| | | catch { } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | RefreshList(); |
| | | CommonPage.Loading.Hide(); |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | void ReadDoorLockUserInfo1() |
| | | { |
| | | System.Threading.Tasks.Task.Run(async () => |
| | | { |
| | | Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); }); |
| | | try |
| | | { |
| | | var getDoorLockInfo = await doorLock.GetDoorlockUserInfoAsync(); |
| | | if (getDoorLockInfo != null && getDoorLockInfo.doorLockUserDetailData != null) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | //数据如果在门锁上面是空的时候,数据也是没有的 |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.GwResponseOvertime), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance); |
| | |
| | | EventHandler<MouseEventArgs> eHandlerBack = (sender, e) => |
| | | { |
| | | RemoveFromParent(); |
| | | }; |
| | | }; |
| | | this.btnBack.MouseUpEventHandler += eHandlerBack; |
| | | this.btnBackFrameLayout.MouseUpEventHandler += eHandlerBack; |
| | | this.MidFrameLayout(this); |
| | | |
| | | ReadDoorLockUserInfo(); |
| | | MidFrameLayoutContent(); |
| | | if (doorLock.localDoorLockUserList.Count == 0) |
| | | { |
| | | ReadDoorLockUserInfo(); |
| | | } |
| | | RefreshList(); |
| | | } |
| | | |
| | | public void MidFrameLayoutContent() |
| | |
| | | Height = Application.GetRealHeight(1921 - 184 - 115 - 1), |
| | | }; |
| | | this.midFrameLayout.AddChidren(bodyView); |
| | | |
| | | RefreshList(); |
| | | } |
| | | |
| | | void RefreshList() |
| | |
| | | public class UserDoorLockPage : DoorLockCommonLayout, ZigBee.Common.IStatus |
| | | { |
| | | |
| | | public UserDoorLockPage(Shared.Common.Room room ,DeviceUI doorLock) |
| | | public UserDoorLockPage(Shared.Common.Room room, DeviceUI doorLock) |
| | | { |
| | | this.doorLock = doorLock.CommonDevice as ZigBee.Device.DoorLock; |
| | | currentRoom = room; |
| | | deviceUI = doorLock; |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCTopViewBackgroundColor; |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCTopViewBackgroundColor; |
| | | ZigBee.Device.ZbGateway.StatusList.Add(this); |
| | | } |
| | | |
| | |
| | | VerticalScrolViewLayout midVerticalScrolViewLayout; |
| | | #endregion |
| | | |
| | | void ReadAccountList() |
| | | void ReadAccountDoorLockInfoList() |
| | | { |
| | | System.Threading.Tasks.Task.Run(async () => |
| | | { |
| | |
| | | { |
| | | doorLock.localAllAccountList.Clear(); |
| | | doorLock.localAllAccountList = localAccountListTemp; |
| | | |
| | | //初始化权限信息 |
| | | foreach (var sub in localAccountListTemp) |
| | | { |
| | | //初始化权限信息 |
| | | if (doorLock.IsFreezeAccount.ContainsKey(sub.SubAccountDistributedMark) == false) |
| | | { |
| | | doorLock.IsFreezeAccount.Add(sub.SubAccountDistributedMark, false); |
| | |
| | | doorLock.IsFailedToGetDoorLockInfo.Add(sub.SubAccountDistributedMark, false); |
| | | } |
| | | } |
| | | |
| | | //获取本地门锁列表 |
| | | var list = await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetDoorLockAllAcountUserlist(doorLock); |
| | | doorLock.ReSave(); |
| | | } |
| | | else |
| | |
| | | { |
| | | }; |
| | | this.midFrameLayout.AddChidren(midVerticalScrolViewLayout); |
| | | ReadAccountList(); |
| | | ReadAccountDoorLockInfoList(); |
| | | } |
| | | |
| | | async void MidFrameLayoutContent() |
| | |
| | | /// 列表控件
|
| | | /// </summary>
|
| | | private VerticalFrameControl listView = null;
|
| | | /// <summary>
|
| | | /// 全部的行
|
| | | /// </summary>
|
| | | private Dictionary<string, RowLayoutControl> dicAllRow = null;
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | /// </summary>
|
| | | private async void InitMiddleData()
|
| | | {
|
| | | this.dicAllRow = new Dictionary<string, RowLayoutControl>();
|
| | |
|
| | | //打开进度条
|
| | | this.ShowProgressBar();
|
| | | var result = await UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeUsers/GetPushMessageRecord", false, "");
|
| | |
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | HdlThreadLogic.Current.RunMainInThread(() =>
|
| | | {
|
| | | //初始化中部控件
|
| | | this.InitMiddleFrame(dicData);
|
| | |
| | | /// <param name="dicData"></param>
|
| | | private void InitMiddleFrame(Dictionary<string, List<MessageRecordInfo>> dicData)
|
| | | {
|
| | | int index = 0;
|
| | | foreach (var keys in dicData.Keys)
|
| | | {
|
| | | var listData = dicData[keys];
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | index++;
|
| | | //容器
|
| | | var framBack = new FrameListControl(23);
|
| | | framBack.Name = keys;
|
| | | framBack.Name = index.ToString();
|
| | | framBack.Height = Application.GetRealHeight(100);
|
| | | framBack.BackgroundColor = UserCenterColor.Current.White;
|
| | | listView.AddChidrenFrame(framBack);
|
| | |
|
| | | //日期
|
| | | string strMonth = Language.StringByID(R.MyInternationalizationString.Month);
|
| | |
| | | {
|
| | | //添加信息行
|
| | | this.AddMsgRowControl(framBack, listData[i], i != listData.Count - 1);
|
| | | }
|
| | | //调整高度
|
| | | listView.AdjustChidrenFrameHeight(framBack, Application.GetRealHeight(23));
|
| | | if (index == dicData.Count)
|
| | | {
|
| | | listView.AdjustTableHeight();
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | //全部已读
|
| | | menuContr.AddMenu(Language.StringByID(R.MyInternationalizationString.uAllRead), () =>
|
| | | {
|
| | | //设置全部为已读
|
| | | this.SetAllTickIsRead();
|
| | | });
|
| | | //全部删除
|
| | | menuContr.AddMenu(Language.StringByID(R.MyInternationalizationString.uAllDelete), () =>
|
| | | {
|
| | | //删除全部的消息
|
| | | this.DeleteAllMsg();
|
| | | });
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | var rowControl = new RowLayoutControl(frameList.rowSpace / 2);
|
| | | frameList.AddChidren(rowControl);
|
| | | |
| | | rowControl.Name = frameList.ChildrenCount.ToString();
|
| | | rowControl.MainKeys = recordInfo.RegId;
|
| | | this.dicAllRow[frameList.Name + "-" + rowControl.Name] = rowControl;
|
| | |
|
| | | //图标(现在测试)
|
| | | var btnIcon = rowControl.frameTable.AddLeftIcon(81);
|
| | | btnIcon.UnSelectedImagePath = "Item/Satety.png";
|
| | | btnIcon.UnSelectedImagePath = "Item/Safety.png";
|
| | |
|
| | | //消息类型
|
| | | var btnMsgObject = rowControl.frameTable.AddLeftCaption("测试:消息类型", 600);
|
| | |
| | | //消息
|
| | | var btnMsg = rowControl.frameTable.AddMostRightView(recordInfo.MsgContent, 600, 60);
|
| | | btnMsg.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | | btnMsg.Y = Application.GetRealHeight(6) + rowControl.frameTable.chidrenYaxis;
|
| | | btnMsg.Y = Application.GetRealHeight(5) + rowControl.frameTable.chidrenYaxis;
|
| | | rowControl.frameTable.AddChidren(btnMsg, ChidrenBindMode.BindEventOnly);
|
| | | //时间
|
| | | var btnTime = rowControl.frameTable.AddMostRightView(recordInfo.MsgContent, 200, 50);
|
| | |
| | | btnDelete.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //确认删除消息?
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uDeleteRoomMsg);
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uDeleteMessageMsg);
|
| | | this.ShowMassage(ShowMsgType.Confirm, msg, async () =>
|
| | | {
|
| | | await this.DeleteMsg(recordInfo.RegId, frameList, rowControl);
|
| | |
| | | };
|
| | |
|
| | | //点击
|
| | | rowControl.frameTable.ButtonClickEvent += (sender, e) =>
|
| | | rowControl.frameTable.ButtonClickEvent += async (sender, e) =>
|
| | | {
|
| | | if (recordInfo.IsRead == 1)
|
| | | {
|
| | |
| | | //消息
|
| | | btnMsg.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | btnNewTip.RemoveFromParent();
|
| | | //标记已读(不管它成功不成功)
|
| | | this.SetTickIsRead(recordInfo.RegId);
|
| | | if (sender != null)
|
| | | {
|
| | | //标记已读(不管它成功不成功)
|
| | | await this.SetTickIsRead(recordInfo.RegId);
|
| | | }
|
| | | };
|
| | | }
|
| | |
|
| | |
| | | /// 标记已读
|
| | | /// </summary>
|
| | | /// <param name="strId"></param>
|
| | | private async void SetTickIsRead(string strId)
|
| | | private async System.Threading.Tasks.Task<bool> SetTickIsRead(string strId)
|
| | | {
|
| | | var pra = new { Id = strId };
|
| | | //await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/TickIsRead", true, pra);
|
| | | await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/TickIsRead", true, pra);
|
| | | return true;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 设置全部为已读
|
| | | /// </summary>
|
| | | private void SetAllTickIsRead()
|
| | | {
|
| | | if (dicAllRow.Count == 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | | //确认标记全部消息为已读?
|
| | | this.ShowMassage(ShowMsgType.Confirm, Language.StringByID(R.MyInternationalizationString.uUnTipAllMessageMsg), () =>
|
| | | {
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | //打开进度条
|
| | | this.ShowProgressBar();
|
| | | foreach (var contr in this.dicAllRow.Values)
|
| | | {
|
| | | //标识全部为已读
|
| | | var result = await this.SetTickIsRead(contr.MainKeys);
|
| | | if (result == false)
|
| | | {
|
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | | return;
|
| | | }
|
| | | }
|
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //设置全部状态
|
| | | foreach (var contr in this.dicAllRow.Values)
|
| | | {
|
| | | contr.frameTable.ButtonClickEvent?.Invoke(null, null);
|
| | | }
|
| | | });
|
| | | });
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | private async System.Threading.Tasks.Task<bool> DeleteMsg(string strId, FrameListControl frameList, RowLayoutControl rowContr)
|
| | | {
|
| | | var pra = new { Id = strId };
|
| | | //var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/DeletePushMessage", true, pra);
|
| | | //if (result == true && frameList != null)
|
| | | var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/DeletePushMessage", true, pra);
|
| | | if (result == true && frameList != null)
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | rowContr.RemoveFromParent();
|
| | | //移除缓存
|
| | | this.dicAllRow.Remove(frameList.Name + "-" + rowContr.Name);
|
| | | //调整控件位置
|
| | | this.AdjustControlLocation(frameList);
|
| | | this.AdjustControlLocation(frameList, rowContr);
|
| | | });
|
| | | }
|
| | | //return result;
|
| | | return true;
|
| | | return result;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 删除全部的消息
|
| | | /// </summary>
|
| | | private void DeleteAllMsg()
|
| | | {
|
| | | if (dicAllRow.Count == 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | | //确认删除全部消息?
|
| | | this.ShowMassage(ShowMsgType.Confirm, Language.StringByID(R.MyInternationalizationString.uDeleteAllMessageMsg), () =>
|
| | | {
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | //打开进度条
|
| | | this.ShowProgressBar();
|
| | | foreach (var contr in this.dicAllRow.Values)
|
| | | {
|
| | | //删除全部消息
|
| | | var result = await this.DeleteMsg(contr.MainKeys, null, null);
|
| | | if (result == false)
|
| | | {
|
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | | return;
|
| | | }
|
| | | }
|
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | bodyFrameLayout.RemoveAll();
|
| | | listView = new VerticalFrameControl(35);
|
| | | listView.Height = bodyFrameLayout.Height;
|
| | | bodyFrameLayout.AddChidren(listView);
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //初始化中部信息
|
| | | this.InitMiddleData();
|
| | | });
|
| | | });
|
| | | });
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// 调整控件位置
|
| | | /// </summary>
|
| | | /// <param name="frameList"></param>
|
| | | private void AdjustControlLocation(FrameListControl frameList)
|
| | | private void AdjustControlLocation(FrameListControl frameList, RowLayoutControl removeRow)
|
| | | {
|
| | | int nowHeight = frameList.Height;
|
| | | int changedHeight = 0;
|
| | | if (frameList.ChildrenCount <= 1)
|
| | | int changedHeight = frameList.GetChildren(frameList.ChildrenCount - 1).Height;
|
| | | if (frameList.ChildrenCount <= 2)
|
| | | {
|
| | | //已经删完了,只剩下标题日期了
|
| | | frameList.RemoveFromParent();
|
| | | changedHeight = nowHeight;
|
| | | changedHeight = frameList.Height;
|
| | | }
|
| | | else
|
| | | {
|
| | | frameList.Height = frameList.GetChildren(frameList.ChildrenCount - 1).Bottom;
|
| | | changedHeight = nowHeight - frameList.Height;
|
| | | }
|
| | | //先调整各自容器的Y轴坐标
|
| | | bool canChangedLoaction = false;
|
| | | for (int i = 0; i < this.listView.ChildrenCount; i++)
|
| | | for (int i = 0; i < this.listView.frameTable.ChildrenCount; i++)
|
| | | {
|
| | | var myView = this.listView.GetChildren(i);
|
| | | var myView = this.listView.frameTable.GetChildren(i);
|
| | | if (myView.Name == frameList.Name)
|
| | | {
|
| | | //它之后的控件全部往上移动
|
| | |
| | | {
|
| | | myView.Y -= changedHeight;
|
| | | }
|
| | | }
|
| | | //调整父容器大小
|
| | | this.listView.AdjustTableHeight();
|
| | |
|
| | |
|
| | | if (frameList.ChildrenCount <= 2)
|
| | | {
|
| | | //已经删完了,只剩下标题日期了
|
| | | frameList.RemoveFromParent();
|
| | | }
|
| | | else
|
| | | {
|
| | | //这个容器里面被移除的行的下面的全部行,往上移动
|
| | | bool changedFlage = false;
|
| | | for (int i = 0; i < frameList.ChildrenCount; i++)
|
| | | {
|
| | | var myView = frameList.GetChildren(i);
|
| | | if (myView.Name == removeRow.Name)
|
| | | {
|
| | | //它之后的控件全部往上移动
|
| | | changedFlage = true;
|
| | | continue;
|
| | | }
|
| | | if (changedFlage == true)
|
| | | {
|
| | | myView.Y -= changedHeight;
|
| | | }
|
| | | }
|
| | | //移除指定的行
|
| | | removeRow.RemoveFromParent();
|
| | | //容器大小减少
|
| | | frameList.Height -= changedHeight;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var listData = dicTemp[listSortKeys[i]];
|
| | | foreach (var data2 in listData)
|
| | | {
|
| | | string[] myArry = data2.MsgTime.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
|
| | | if (dicData.ContainsKey(myArry[1]) == false)
|
| | | string[] myArry = data2.MsgTime.Split(new string[] { "T" }, StringSplitOptions.RemoveEmptyEntries);
|
| | | if (myArry.Length != 2)
|
| | | {
|
| | | dicData[myArry[1]] = new List<MessageRecordInfo>();
|
| | | continue;
|
| | | }
|
| | | dicData[myArry[1]].Add(data2);
|
| | | if (dicData.ContainsKey(myArry[0]) == false)
|
| | | {
|
| | | dicData[myArry[0]] = new List<MessageRecordInfo>();
|
| | | }
|
| | | dicData[myArry[0]].Add(data2);
|
| | | }
|
| | | }
|
| | | return dicData;
|
| | |
| | | }
|
| | |
|
| | | //刷新信息提示控件
|
| | | this.msgControl.RefreshStatu();
|
| | | this.msgControl?.RefreshStatu();
|
| | |
|
| | | //初始化主菜单的控件
|
| | | this.InitMainMenuInfoControl(frameWhiteBack);
|
| | |
| | | } |
| | | }; |
| | | |
| | | //*******待改***** |
| | | UserPage.Instance.Fresh(); |
| | | if (Config.Instance.IsLogin) |
| | | { |
| | | ShowLoginLoadView(); |
| | | CommonPage.Loading.Start(); |
| | | Action action = async () => |
| | | { |
| | |
| | | //刷新个人中心的内存及线程 |
| | | await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread(); |
| | | |
| | | Room.CanInitAllRoom = true; |
| | | Room.InitAllRoom(); |
| | | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | CommonPage.Instance.RemoveViewByTag("Login"); |
| | | UserPage.Instance.Fresh(); |
| | | CommonPage.Loading.Hide(); |
| | | }); |
| | |
| | | //刷新个人中心的内存及线程 |
| | | await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread(); |
| | | |
| | | Room.CanInitAllRoom = true; |
| | | Room.InitAllRoom(); |
| | | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | CommonPage.Instance.RemoveViewByTag("Login"); |
| | | UserPage.Instance.Fresh(); |
| | | CommonPage.Loading.Hide(); |
| | | }); |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | public void ShowLoginLoadView() |
| | | { |
| | | var loginLoad = new LoginLoading { }; |
| | | CommonPage.Instance.AddChidren(loginLoad); |
| | | loginLoad.Show(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// Logins the by PWDA sync. |
| | | /// </summary> |
New file |
| | |
| | | using System; |
| | | using Shared.Common; |
| | | using Shared.Phone.Device.CommonForm; |
| | | |
| | | namespace Shared.Phone.UserView |
| | | { |
| | | public class LoginLoading : FrameLayout |
| | | { |
| | | public LoginLoading() |
| | | { |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; |
| | | Tag = "Login"; |
| | | } |
| | | /// <summary> |
| | | /// show |
| | | /// </summary> |
| | | public void Show() |
| | | { |
| | | var topFrameLayout = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(60), |
| | | Height = Application.GetRealHeight(127), |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, |
| | | }; |
| | | AddChidren(topFrameLayout); |
| | | |
| | | var floor = new Button |
| | | { |
| | | X = Application.GetRealWidth(CommonFormResouce.X_Left), |
| | | Width = Application.GetMinRealAverage(69), |
| | | Height = Application.GetMinRealAverage(69), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Item/Floor.png" |
| | | }; |
| | | topFrameLayout.AddChidren(floor); |
| | | |
| | | var messageBtn = new Button() |
| | | { |
| | | X = Application.GetRealWidth(953), |
| | | Width = Application.GetMinRealAverage(69), |
| | | Height = Application.GetMinRealAverage(69), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Item/Message.png", |
| | | SelectedImagePath = "Item/MessageSelected.png" |
| | | }; |
| | | topFrameLayout.AddChidren(messageBtn); |
| | | |
| | | var roomBG = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(302), |
| | | Width = Application.GetRealWidth(CommonPage.AppRealWidth - CommonPage.XLeft * 2), |
| | | Height = Application.GetMinRealAverage(550), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | UnSelectedImagePath = "RoomIcon/1.JPG", |
| | | }; |
| | | AddChidren(roomBG); |
| | | |
| | | |
| | | var functionSceneView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(861), |
| | | Width = Application.GetRealWidth(832), |
| | | Height = Application.GetRealHeight(167), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | BackgroundImagePath = "Item/SceneFunctionBG.png" |
| | | }; |
| | | AddChidren(functionSceneView); |
| | | |
| | | var sceneBtn = new Button() |
| | | { |
| | | X = Application.GetRealWidth(30), |
| | | Y = Application.GetRealHeight(12), |
| | | Width = Application.GetRealWidth(350), |
| | | Height = Application.GetRealHeight(100), |
| | | TextColor = ZigbeeColor.Current.GXCTextGrayColor3, |
| | | SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | TextID = R.MyInternationalizationString.Scence, |
| | | IsSelected = true |
| | | }; |
| | | functionSceneView.AddChidren(sceneBtn); |
| | | |
| | | var functionBtn = new Button() |
| | | { |
| | | X = Application.GetRealWidth(430), |
| | | Y = Application.GetRealHeight(12), |
| | | Width = Application.GetRealWidth(360), |
| | | Height = Application.GetRealHeight(100), |
| | | TextColor = ZigbeeColor.Current.GXCTextGrayColor3, |
| | | SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | TextID = R.MyInternationalizationString.Function, |
| | | IsSelected = false |
| | | }; |
| | | functionSceneView.AddChidren(functionBtn); |
| | | |
| | | var functionSceneBodyView = new FrameLayout() |
| | | { |
| | | Y = functionSceneView.Bottom, |
| | | Height = Application.GetRealHeight(750), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor |
| | | }; |
| | | AddChidren(functionSceneBodyView); |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | private readonly int sleepSpan = 300; |
| | | |
| | | |
| | | private FrameLayout itemView=new FrameLayout(); |
| | | private FrameLayout itemView = new FrameLayout(); |
| | | /// <summary> |
| | | /// floorBtn |
| | | /// </summary> |
| | |
| | | { |
| | | case 0: |
| | | //此属性表明当前亮度程度 |
| | | dimmableLight.Level = attriButeList[0].AttriButeData ; |
| | | dimmableLight.Level = attriButeList[0].AttriButeData; |
| | | dimmableLight.LastDateTime = DateTime.Now; |
| | | (rowFL.GetChildren(0) as FunctionMainView).IsSelected = true; |
| | | (rowFL.GetChildren(0) as FunctionMainView).StatuButton.Text = deviceUI.GetDeviceStatu(); |
| | |
| | | #region topview |
| | | var topFrameLayout = new FrameLayout() |
| | | { |
| | | Y=Application.GetRealHeight(60), |
| | | Y = Application.GetRealHeight(60), |
| | | Height = Application.GetRealHeight(127), |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, |
| | | }; |
| | |
| | | |
| | | floorBtn = new Button |
| | | { |
| | | X=floor.Right, |
| | | Width=Application.GetRealWidth(500), |
| | | Height=Application.GetRealHeight(100), |
| | | X = floor.Right, |
| | | Width = Application.GetRealWidth(500), |
| | | Height = Application.GetRealHeight(100), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextAlignment =TextAlignment.CenterLeft, |
| | | TextColor=ZigbeeColor.Current.GXCTextColor, |
| | | Text=Config.Instance.Home.GetCurrentFloorName |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.GXCTextColor, |
| | | Text = Config.Instance.Home.GetCurrentFloorName |
| | | }; |
| | | topFrameLayout.AddChidren(floorBtn); |
| | | |
| | |
| | | Height = Application.GetMinRealAverage(69), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Item/Message.png", |
| | | SelectedImagePath="Item/MessageSelected.png" |
| | | SelectedImagePath = "Item/MessageSelected.png" |
| | | }; |
| | | topFrameLayout.AddChidren(messageBtn); |
| | | |
| | | var residecneName = new Button() |
| | | { |
| | | X=Application.GetRealWidth(CommonFormResouce.X_Left), |
| | | X = Application.GetRealWidth(CommonFormResouce.X_Left), |
| | | Y = Application.GetRealHeight(161), |
| | | Width = Application.GetRealWidth(700), |
| | | Height = Application.GetRealHeight(95), |
| | |
| | | TextSize = 24, |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor |
| | | }; |
| | | if(Config.Instance.Home.IsOthreShare) |
| | | if (Config.Instance.Home.IsOthreShare) |
| | | { |
| | | residecneName.Text = $"({Language.StringByID(R.MyInternationalizationString.Shared)}){Config.Instance.Home.Name}"; |
| | | residecneName.Text = $"{Config.Instance.Home.Name}"; |
| | | } |
| | | AddChidren(residecneName); |
| | | |
| | |
| | | var scrolView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = changeHomeBtn.Bottom, |
| | | Height = Application.GetMinRealAverage(305-10) |
| | | Height = Application.GetMinRealAverage(305 - 10) |
| | | }; |
| | | changeHomeFL.AddChidren(scrolView); |
| | | |
| | |
| | | scrolView.AddChidren(rowView); |
| | | var pointBtn = new Device.CommonForm.SelectedStatuButton() |
| | | { |
| | | X=Application.GetRealWidth(80), |
| | | X = Application.GetRealWidth(80), |
| | | Width = Application.GetMinRealAverage(80), |
| | | Height = Application.GetMinRealAverage(80), |
| | | Gravity = Gravity.CenterVertical, |
| | |
| | | SelectedTextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | IsSelected = home.Id == Config.Instance.Home.Id |
| | | }; |
| | | if(home.IsOthreShare) |
| | | if (home.IsOthreShare) |
| | | { |
| | | nameBtn.Text = $"({Language.StringByID(R.MyInternationalizationString.Shared)}){home.Name}"; |
| | | nameBtn.Text = $"{home.Name}"; |
| | | } |
| | | rowView.AddChidren(nameBtn); |
| | | |
| | |
| | | nameBtn.IsSelected = true; |
| | | |
| | | residecneName.Text = home.Name; |
| | | if(home.IsOthreShare) |
| | | if (home.IsOthreShare) |
| | | { |
| | | nameBtn.Text = $"({Language.StringByID(R.MyInternationalizationString.Shared)}){home.Name}"; |
| | | nameBtn.Text = $"{home.Name}"; |
| | | } |
| | | clickCheckBtn = pointBtn; |
| | | clickNameBtn = nameBtn; |
| | |
| | | residecneName.Text = home.Name; |
| | | if (home.IsOthreShare) |
| | | { |
| | | residecneName.Text = nameBtn.Text = $"({Language.StringByID(R.MyInternationalizationString.Shared)}){home.Name}"; |
| | | residecneName.Text = nameBtn.Text = $"{home.Name}"; |
| | | } |
| | | } |
| | | else |
| | |
| | | |
| | | #endregion |
| | | |
| | | if(CanBindGateway()==false) |
| | | if (CanBindGateway() == false) |
| | | { |
| | | var roomPageView = new PageLayout() |
| | | { |
| | |
| | | AddChidren(roomPageView); |
| | | |
| | | //当前房间 |
| | | if (Shared.Common.Room.CanInitAllRoom == true) |
| | | //Room.CurrentRoom = Room.CurrentRoom == null ? Room.Lists[0] : Room.CurrentRoom; |
| | | var rList = Room.CurrentRoom.GetRoomsByCurrentFloorIdAppendLoveRoom(); |
| | | Room.CurrentRoom = rList[0]; |
| | | foreach (var room in rList) |
| | | { |
| | | //Room.CurrentRoom = Room.CurrentRoom == null ? Room.Lists[0] : Room.CurrentRoom; |
| | | Room.CurrentRoom = Room.Lists[0]; |
| | | foreach (var room in Room.CurrentRoom.GetRoomsByCurrentFloorIdAppendLoveRoom()) |
| | | { |
| | | var roomBackView = new FrameLayout() |
| | | { |
| | | BackgroundImagePath = room.BackgroundImage |
| | | }; |
| | | roomPageView.AddChidren(roomBackView); |
| | | var roomBG = new Button() |
| | | { |
| | | //UnSelectedImagePath = "Room/HomeBG.png", |
| | | UnSelectedImagePath = room.BackgroundImage |
| | | }; |
| | | roomBackView.AddChidren(roomBG); |
| | | var roomName = new Button() |
| | | { |
| | | X = Application.GetRealWidth(20), |
| | | Y = Application.GetRealHeight(20), |
| | | Width = Application.GetRealWidth(500), |
| | | Height = Application.GetRealHeight(80), |
| | | Text = room.Name, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | TextSize = 18, |
| | | }; |
| | | roomBackView.AddChidren(roomName); |
| | | var roomListBtn = new Device.CommonForm.SelectedStatuButton() |
| | | { |
| | | X = roomPageView.Width - Application.GetRealWidth(100 + 20), |
| | | Y = Application.GetRealHeight(20), |
| | | Width = Application.GetMinRealAverage(100), |
| | | Height = Application.GetMinRealAverage(100), |
| | | UnSelectedImagePath = "Item/List.png", |
| | | }; |
| | | roomBackView.AddChidren(roomListBtn); |
| | | |
| | | roomListBtn.MouseUpEventHandler += (send, e) => |
| | | { |
| | | var editRoom = new Device.Room.EditRoom(); |
| | | HomePage.Instance.AddChidren(editRoom); |
| | | HomePage.Instance.PageIndex += 1; |
| | | editRoom.Show(room); |
| | | editRoom.action += () => |
| | | { |
| | | Show(); |
| | | }; |
| | | }; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | Room.CurrentRoom = Room.Lists[0]; |
| | | var roomBackView = new FrameLayout() |
| | | { |
| | | BackgroundImagePath = "Room/r0.png" |
| | | BackgroundImagePath = room.BackgroundImage |
| | | }; |
| | | roomPageView.AddChidren(roomBackView); |
| | | var roomBG = new Button() |
| | | { |
| | | UnSelectedImagePath = "Room/HomeBG.png", |
| | | //UnSelectedImagePath = room.BackgroundImage |
| | | }; |
| | | roomBackView.AddChidren(roomBG); |
| | | var roomName = new Button() |
| | |
| | | Y = Application.GetRealHeight(20), |
| | | Width = Application.GetRealWidth(500), |
| | | Height = Application.GetRealHeight(80), |
| | | Text = Language.StringByID(R.MyInternationalizationString.Favorite), |
| | | Text = room.Name, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | TextSize = 18 |
| | | TextSize = 18, |
| | | }; |
| | | roomBackView.AddChidren(roomName); |
| | | var roomListBtn = new Button() |
| | | var roomListBtn = new Device.CommonForm.SelectedStatuButton() |
| | | { |
| | | X = roomPageView.Width - Application.GetRealWidth(100 + 20), |
| | | Y = Application.GetRealHeight(20), |
| | | Width = Application.GetMinRealAverage(100), |
| | | Height = Application.GetMinRealAverage(100), |
| | | UnSelectedImagePath = "Item/List.png" |
| | | UnSelectedImagePath = "Item/List.png", |
| | | }; |
| | | roomBackView.AddChidren(roomListBtn); |
| | | |
| | | roomListBtn.MouseUpEventHandler += (send, e) => |
| | | { |
| | | var editRoom = new Device.Room.EditRoom(); |
| | | HomePage.Instance.AddChidren(editRoom); |
| | | HomePage.Instance.PageIndex += 1; |
| | | editRoom.Show(room); |
| | | editRoom.action += () => |
| | | { |
| | | Show(); |
| | | }; |
| | | }; |
| | | } |
| | | |
| | | |
| | | |
| | | var functionSceneView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(861), |
| | | Width=Application.GetRealWidth(832), |
| | | Width = Application.GetRealWidth(832), |
| | | Height = Application.GetRealHeight(167), |
| | | Gravity=Gravity.CenterHorizontal, |
| | | BackgroundImagePath="Item/SceneFunctionBG.png" |
| | | Gravity = Gravity.CenterHorizontal, |
| | | BackgroundImagePath = "Item/SceneFunctionBG.png" |
| | | }; |
| | | AddChidren(functionSceneView); |
| | | |
| | |
| | | Y = functionSceneView.Bottom, |
| | | Height = Application.GetRealHeight(750), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | BackgroundColor=ZigbeeColor.Current.GXCGrayBackgroundColor |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor |
| | | }; |
| | | AddChidren(functionSceneBodyView); |
| | | |
| | |
| | | roomPageView.PageChange += (sender, e) => |
| | | { |
| | | //切换当前房间 |
| | | Room.CurrentRoom = Room.CurrentRoom == null ? Room.Lists[0] : Room.Lists[roomPageView.PageIndex]; |
| | | Room.CurrentRoom = rList[roomPageView.PageIndex]; |
| | | RefreshBodyView(); |
| | | }; |
| | | } |
| | |
| | | /// </summary> |
| | | public void RefreshBodyView() |
| | | { |
| | | if (Room.CanInitAllRoom == false) |
| | | { |
| | | return; |
| | | } |
| | | functionSceneBodyView.RemoveAll(); |
| | | if (functionBtn.IsSelected) |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="mouseEventArgs"></param> |
| | | public void SelectFloor(object sender,MouseEventArgs mouseEventArgs) |
| | | public void SelectFloor(object sender, MouseEventArgs mouseEventArgs) |
| | | { |
| | | var floorFL = new Phone.Device.Category.SelectFloor(); |
| | | AddChidren(floorFL); |
| | |
| | | |
| | | var noFunctionTip = new Button() |
| | | { |
| | | Y=noFunction.Bottom, |
| | | Y = noFunction.Bottom, |
| | | Height = Application.GetRealHeight(200), |
| | | Text = Language.StringByID(R.MyInternationalizationString.NoFunction).Replace("{\\r\\n}","\r\n"), |
| | | Text = Language.StringByID(R.MyInternationalizationString.NoFunction).Replace("{\\r\\n}", "\r\n"), |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, |
| | | IsMoreLines=true |
| | | IsMoreLines = true |
| | | }; |
| | | functionSceneBodyView.AddChidren(noFunctionTip); |
| | | } |
| | |
| | | else |
| | | { |
| | | deviceVerticalScrolViewLayout = new VerticalScrolViewLayout { }; |
| | | |
| | | |
| | | functionSceneBodyView.AddChidren(deviceVerticalScrolViewLayout); |
| | | for(int i=0;i<deviceList.Count;i++) |
| | | for (int i = 0; i < deviceList.Count; i++) |
| | | { |
| | | int t = i % 2; |
| | | int tt = i / 2; |
| | |
| | | if (e1) |
| | | { |
| | | Room.CurrentRoom.DeleteDevice(device.FileName); |
| | | //RefreshBodyView(); |
| | | deviceVerticalScrolViewLayout.RemoveViewByTag((sender as Button).Tag); |
| | | //RefreshBodyView(); |
| | | deviceVerticalScrolViewLayout.RemoveViewByTag((sender as Button).Tag); |
| | | } |
| | | }; |
| | | }; |
| | |
| | | } |
| | | } |
| | | |
| | | var lightView = new FunctionMainView(xx,yy); |
| | | var lightView = new FunctionMainView(xx, yy); |
| | | itemView.AddChidren(lightView); |
| | | lightView.Init(); |
| | | lightView.SetDeviceImage(device.IconPath, device.OnlineIconPath); |
| | | lightView.SetStatuText(device.GetDeviceStatu()); |
| | | lightView.SetDeviceName(device.CommonDevice.DeviceEpointName); |
| | | lightView.IsSelected = light.OnOffStatus==1; |
| | | lightView.SetCollect(Room.CurrentRoom.IsCollectInRoom(Room.CurrentRoom,device.FileName)); |
| | | lightView.IsSelected = light.OnOffStatus == 1; |
| | | lightView.SetCollect(Room.CurrentRoom.IsCollectInRoom(Room.CurrentRoom, device.FileName)); |
| | | |
| | | var dev = Room.LoveRoomDeviceUIFilePathList.Find((obj) => obj == device.FileName); |
| | | if (dev == null) |
| | |
| | | |
| | | lightView.CardBG.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | var userDoorLockPage = new UserDoorLockPage(Room.CurrentRoom,device); |
| | | var userDoorLockPage = new UserDoorLockPage(Room.CurrentRoom, device); |
| | | HomePage.Instance.AddChidren(userDoorLockPage); |
| | | HomePage.Instance.PageIndex += 1; |
| | | userDoorLockPage.Show(); |
| | |
| | | functionSceneBodyView.AddChidren(noScene); |
| | | var noScenceTip = new Button() |
| | | { |
| | | Y=noScene.Bottom, |
| | | Y = noScene.Bottom, |
| | | Height = Application.GetRealHeight(200), |
| | | Text =Language.StringByID(R.MyInternationalizationString.NoScene).Replace("{\\r\\n}","\r\n"), |
| | | Text = Language.StringByID(R.MyInternationalizationString.NoScene).Replace("{\\r\\n}", "\r\n"), |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, |
| | | IsMoreLines=true |
| | | IsMoreLines = true |
| | | }; |
| | | functionSceneBodyView.AddChidren(noScenceTip); |
| | | } |
| | |
| | | { |
| | | var sceneScrolView = new VerticalScrolViewLayout { }; |
| | | functionSceneBodyView.AddChidren(sceneScrolView); |
| | | for(int i=0;i<sceneList.Count;i++) |
| | | for (int i = 0; i < sceneList.Count; i++) |
| | | { |
| | | var scene = sceneList[i]; |
| | | int xx = 43 + i % 2 * (20 + 487); |
| | |
| | | } |
| | | else |
| | | { |
| | | sceneView.SetTimeText(scene.SceneDelayTime.ToString()); |
| | | sceneView.SetTimeText(CommonFormResouce.GetTimeString(scene.SceneDelayTime)); |
| | | } |
| | | |
| | | sceneView.TimeButton.MouseUpEventHandler += (sender, e) => |
| | |
| | | timeSelect.TimeAction = (t) => |
| | | { |
| | | scene.SceneDelayTime = t; |
| | | if(t>0) |
| | | if (t > 0) |
| | | { |
| | | sceneView.SetTimeText(CommonFormResouce.GetTimeString(scene.SceneDelayTime)); |
| | | } |
| | |
| | | //调用场景 |
| | | EventHandler<MouseEventArgs> sceneUpHandler = async (sender, e) => |
| | | { |
| | | //1成功 0失败 |
| | | //后面补上相关提示 |
| | | // Error参数含义 |
| | | //<para>1:网关无法解析命令数据。</para> |
| | | //<para>2:协调器正在升级或备份/恢复数据 |
| | | //<para>3:操作设备/组/场景不存在</para> |
| | | //<para>4:其他错误</para> |
| | | //<para>5:数据传输错误(在某次客户端向网关发送数据的过程中,网关在合理时间范围内接收客户端数据不完整导致该错误发生。如客户端向网关一次发送100个字节的数据,但网关等待接收了一秒只接收了80个字节。发生该错误,网关将主动关闭客户端连接)</para> |
| | | var sceneOpenAllData = await ZigBee.Device.Scene.ControlSceneAsync(scene.Id, scene.SceneDelayTime); |
| | | //1成功 0失败 |
| | | //后面补上相关提示 |
| | | // Error参数含义 |
| | | //<para>1:网关无法解析命令数据。</para> |
| | | //<para>2:协调器正在升级或备份/恢复数据 |
| | | //<para>3:操作设备/组/场景不存在</para> |
| | | //<para>4:其他错误</para> |
| | | //<para>5:数据传输错误(在某次客户端向网关发送数据的过程中,网关在合理时间范围内接收客户端数据不完整导致该错误发生。如客户端向网关一次发送100个字节的数据,但网关等待接收了一秒只接收了80个字节。发生该错误,网关将主动关闭客户端连接)</para> |
| | | var sceneOpenAllData = await ZigBee.Device.Scene.ControlSceneAsync(scene.Id, scene.SceneDelayTime); |
| | | if (sceneOpenAllData == null || sceneOpenAllData.sceneOpenData == null) |
| | | { |
| | | return; |
| | |
| | | |
| | | sceneView.CollectButton.MouseUpEventHandler += collectionEvent; |
| | | sceneView.MouseUpEventHandler += sceneUpHandler; |
| | | sceneView.SceneIcon.MouseUpEventHandler+= sceneUpHandler; |
| | | sceneView.SceneIcon.MouseUpEventHandler += sceneUpHandler; |
| | | sceneView.SceneNameButton.MouseUpEventHandler += sceneUpHandler; |
| | | |
| | | } |
| | |
| | | /// </summary> |
| | | public string curSelectSceneID = ""; |
| | | |
| | | /// <summary> |
| | | /// 本地楼层房间绑定列表 |
| | | /// </summary> |
| | | public Dictionary<int, FloorRoomBindObj> FloorRoomBindObjList = new Dictionary<int, FloorRoomBindObj> { }; |
| | | /// <summary> |
| | | /// 绑定的楼层房间信息 |
| | | /// </summary> |
| | | [System.Serializable] |
| | | public class FloorRoomBindObj |
| | | { |
| | | /// <summary> |
| | | /// 楼层ID |
| | | /// </summary> |
| | | public string floodID; |
| | | /// <summary> |
| | | /// 楼层名称 |
| | | /// </summary> |
| | | public string floodName; |
| | | /// <summary> |
| | | /// 房间ID |
| | | /// </summary> |
| | | public string roomID; |
| | | /// <summary> |
| | | /// 房间名称 |
| | | /// </summary> |
| | | public string roomName; |
| | | /// <summary> |
| | | /// 绑定目标ID |
| | | /// </summary> |
| | | public string BindID; |
| | | /// <summary> |
| | | /// 绑定目标名称 |
| | | /// </summary> |
| | | public string BindName; |
| | | /// <summary> |
| | | /// 图片路径 |
| | | /// </summary> |
| | | public string IconPath = ""; |
| | | |
| | | } |
| | | |
| | | // <summary> |
| | | /// 按键中被绑定的目标列表 |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// 正在上传备份文件 |
| | | /// </summary> |
| | | public const int uBackupFileUploading = 15975; |
| | | public const int uBackupFileUploading = 15975;
|
| | | /// <summary>
|
| | | /// 确认删除全部消息?
|
| | | /// </summary>
|
| | | public const int uDeleteAllMessageMsg = 15976;
|
| | | /// <summary>
|
| | | /// 确认标记全部消息为已读?
|
| | | /// </summary>
|
| | | public const int uUnTipAllMessageMsg = 15977;
|
| | |
|
| | | //★★★★下面这些是接口的返回信息翻译,从18000开始★★★★
|
| | | /// <summary>
|
| | |
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Account\PhoneZone.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\AC\ACControl.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\AC\ACControlBase.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\CategorySceneSelectAirSwitchSetting.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\CategorySceneSelectCurtainSetting.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\CategorySceneSelectDevice.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\CategorySceneSelectDeviceByRoom.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\CategorySceneSelectedDimmableLightSetting.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\CategorySceneSelectedScene.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\CategorySceneSelectImgByLocal.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\CategorySceneSelectLightSetting.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\CategorySceneSelectRoomList.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\SelectDelayTime.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\SelectDevice.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\SelectFloor.cs" />
|
| | |
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Password\EditorAccountPasswordForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Suggestion\FeedbackForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\UserMain\SecondAuthenticationForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserView\LoginLoading.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\AC.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\DimmableLight.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\DoorLock.cs" />
|
| | |
| | | <Compile Include="$(MSBuildThisFileDirectory)Common\SendDataToServer.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserView\UserHomeView.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Common\Room.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\AddRoom.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\RoomManagement.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\AddRoomSelectPicByLocal.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\AddRoomContent.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\AddDeviceList.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Controls\CompoundControls\ProgressBar.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Controls\CompoundControls\SearchEditText.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Controls\RowLayoutControls\RowLayoutControl.cs" />
|
| | |
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\AddDeviceTypeListForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\DeviceMacInfoEditorForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\DeviceAddSuccessForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\AddDevicesSameTypeList.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\AddDevieDetailFromAddFunction.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Common\DeviceUI.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\AddRoomScene.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Safety\SafetyManagementMainForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Controls\FrameLayoutControls\FrameRowControl.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\Category.cs" />
|