| | |
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\Instruct\SensorPMTwoPointFive.png" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\ZigeeLogic\nextIconSone.png" />
|
| | | </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')" />
|
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="2020050601" android:installLocation="auto" android:versionName="1.0.20050601"> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="2020050901" android:installLocation="auto" android:versionName="1.0.20050901"> |
| | | <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" /> |
| | |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\selectedac.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\openMode.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\selectedsensor21.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\nextIconSone.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\3.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\back.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\selectedtemperature.png" /> |
| | |
| | | /// <summary> |
| | | /// 版本号 |
| | | /// </summary> |
| | | public static string CodeIDString = "1.0.20050701"; |
| | | public static string CodeIDString = "1.0.20050901"; |
| | | /// <summary> |
| | | /// 注册来源(0:HDL On 1:Zigbee) |
| | | /// </summary> |
| | |
| | | //如果住宅为虚拟住宅
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | //修改设备名字的话,主页需要重新刷新
|
| | | Phone.UserView.UserPage.Instance.RefreshForm = true;
|
| | | return true;
|
| | | }
|
| | |
|
| | |
| | | //备份数据
|
| | | await HdlGatewayLogic.Current.UpLoadDeviceBackupDataToGateway(device, GatewayBackupEnum.A端点名称, newName);
|
| | | }
|
| | | //修改设备名字的话,主页需要重新刷新
|
| | | Phone.UserView.UserPage.Instance.RefreshForm = true;
|
| | | return true;
|
| | | }
|
| | |
|
| | |
| | | return; |
| | | } |
| | | home.Name = houseName; |
| | | home.Save(); |
| | | home.Save();
|
| | | //住宅修改名称的话,主页需要重新刷新
|
| | | Phone.UserView.UserPage.Instance.RefreshForm = true; |
| | | } |
| | | |
| | | #endregion |
| | |
| | | this.editorScene.IconPath = this.cloneScene.IconPath;
|
| | | this.editorScene.Save();
|
| | |
|
| | | //新建场景,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //调用回调函数
|
| | |
| | | this.editorScene.IconPath = this.cloneScene.IconPath;
|
| | | this.editorScene.Save();
|
| | |
|
| | | //编辑场景,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //调用回调函数
|
| | |
| | | {
|
| | | //刷新卡片信息
|
| | | var locadevice = LocalDevice.Current.GetDevice(mainKeys);
|
| | | if (report.DeviceStatusReport.CluterID == 513 && report.DeviceStatusReport.AttriBute[0].AttributeId == 28)
|
| | | {
|
| | | //空调是特殊的,它的开关是属性上报来着.已经接收到网关的反馈
|
| | | this.dicDeviceRowControl[mainKeys].SetHadGetResponeResultStatu();
|
| | | }
|
| | | if (report.DeviceStatusReport.CluterID == 514 && report.DeviceStatusReport.AttriBute[0].AttributeId == 0)
|
| | | {
|
| | | //新风是特殊的,它的开关是属性上报来着.已经接收到网关的反馈
|
| | | this.dicDeviceRowControl[mainKeys].SetHadGetResponeResultStatu();
|
| | | }
|
| | | //已经接收到网关的反馈 2020.05.09:删除Ack主题
|
| | | this.dicDeviceRowControl[mainKeys].SetHadGetResponeResultStatu();
|
| | | //刷新控件
|
| | | this.dicDeviceRowControl[mainKeys].RefreshControlInfo(locadevice);
|
| | | }
|
| | | }, ShowErrorMode.NO);
|
| | |
| | | bool bolOnline = LocalDevice.Current.CheckDeviceIsOnline(report);
|
| | | this.dicDeviceRowControl[mainKeys].SetRowOnlineStatu(bolOnline);
|
| | | return;
|
| | | }
|
| | |
|
| | | }, ShowErrorMode.NO);
|
| | | });
|
| | |
|
| | | //设备控制反馈上报
|
| | | HdlGatewayReceiveLogic.Current.AddAttributeEvent("UserHomeViewDeviceRespone", ReceiveComandDiv.A节点控制反馈, (report) =>
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | string mainKeys = LocalDevice.Current.GetDeviceMainKeys(report);
|
| | | if (this.dicDeviceRowControl.ContainsKey(mainKeys) == true)
|
| | | {
|
| | | //设备卡片
|
| | | var deviceCardContr = this.dicDeviceRowControl[mainKeys];
|
| | | //已经接收到网关的反馈
|
| | | deviceCardContr.SetHadGetResponeResultStatu();
|
| | | }
|
| | |
|
| | | }, ShowErrorMode.NO);
|
| | |
| | |
|
| | | Application.RunOnMainThread(() =>
|
| | | {
|
| | | ShowForm();
|
| | | //刷新界面
|
| | | this.ShowForm();
|
| | |
|
| | | CommonPage.Loading.Hide();
|
| | | });
|
| | | })
|
| | |
| | | {
|
| | | //刷新卡片信息
|
| | | var locadevice = LocalDevice.Current.GetDevice(mainKeys);
|
| | | if (report.DeviceStatusReport.CluterID == 513 && report.DeviceStatusReport.AttriBute[0].AttributeId == 28)
|
| | | {
|
| | | //空调是特殊的,它的开关是属性上报来着.已经接收到网关的反馈
|
| | | this.dicDeviceCardControl[mainKeys].SetHadGetResponeResultStatu();
|
| | | }
|
| | | if (report.DeviceStatusReport.CluterID == 514 && report.DeviceStatusReport.AttriBute[0].AttributeId == 0)
|
| | | {
|
| | | //新风是特殊的,它的开关是属性上报来着.已经接收到网关的反馈
|
| | | this.dicDeviceCardControl[mainKeys].SetHadGetResponeResultStatu();
|
| | | }
|
| | | //已经接收到网关的反馈 2020.05.09:删除Ack主题
|
| | | this.dicDeviceCardControl[mainKeys].SetHadGetResponeResultStatu();
|
| | | //刷新控件
|
| | | this.dicDeviceCardControl[mainKeys].RefreshControlInfo(locadevice);
|
| | | }
|
| | | }, ShowErrorMode.NO);
|
| | |
| | | bool bolOnline = Common.LocalDevice.Current.CheckDeviceIsOnline(report);
|
| | | this.dicDeviceCardControl[mainKeys].SetCardOnlineStatu(bolOnline);
|
| | | return;
|
| | | }
|
| | |
|
| | | }, ShowErrorMode.NO);
|
| | | });
|
| | |
|
| | | //设备控制反馈上报
|
| | | HdlGatewayReceiveLogic.Current.AddAttributeEvent("UserHomeViewDeviceRespone", ReceiveComandDiv.A节点控制反馈, (report) =>
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | string mainKeys = LocalDevice.Current.GetDeviceMainKeys(report);
|
| | | if (this.dicDeviceCardControl.ContainsKey(mainKeys) == true)
|
| | | {
|
| | | //设备卡片
|
| | | var deviceCardContr = this.dicDeviceCardControl[mainKeys];
|
| | | //已经接收到网关的反馈
|
| | | deviceCardContr.SetHadGetResponeResultStatu();
|
| | | }
|
| | |
|
| | | }, ShowErrorMode.NO);
|
| | |
| | | //初始化左滑菜单
|
| | | roomManagement = new ListRoomViewFrom();
|
| | | CommonPage.Instance.AddLeftView(roomManagement);
|
| | | roomManagement.ShowForm();
|
| | | } |
| | | return roomManagement; |
| | | } |
| | |
| | | /// 是否可以触发点击事件--是否可以跳转主页房间 |
| | | /// </summary> |
| | | public bool CanClick = true;
|
| | | /// <summary>
|
| | | /// 是否初始化完成
|
| | | /// </summary>
|
| | | private bool isInitFinish = false;
|
| | | /// <summary> |
| | | /// 当前楼层id |
| | | /// </summary> |
| | |
| | | /// 画面显示 |
| | | /// </summary> |
| | | public void ShowForm() |
| | | { |
| | | roomManagement = this;
|
| | | {
|
| | | //初始化头部信息 |
| | | this.InitTopFrame(); |
| | | //初始化中部控件 |
| | |
| | | };
|
| | |
|
| | | //获取楼层
|
| | | if (this.curFloorId == string.Empty)
|
| | | {
|
| | | this.curFloorId = Config.Instance.Home.CurrentFloorId;
|
| | | }
|
| | | this.curFloorId = Config.Instance.Home.CurrentFloorId;
|
| | |
|
| | | var dicFloor = HdlRoomLogic.Current.GetFloorSortList();
|
| | | if (dicFloor.Count == 0)
|
| | | {
|
| | |
| | | {
|
| | | this.curFloorId = floorId;
|
| | | btnFloor.Text = dicFloor[floorId];
|
| | | //刷新房间列表
|
| | | this.RefreshListRoom();
|
| | | //刷新Body容器
|
| | | this.RefreshBodyFrame();
|
| | | };
|
| | | };
|
| | | } |
| | |
| | | listView.Height = bodyFrameLayout.Height; |
| | | listView.Width = bodyFrameLayout.Width; |
| | | bodyFrameLayout.AddChidren(listView); |
| | | //刷新房间列表 |
| | | this.RefreshListRoom(); |
| | | //刷新Body容器
|
| | | this.RefreshBodyFrame(); |
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// </summary>
|
| | | public void RefreshListRoom()
|
| | | {
|
| | | //如果还没有初始化完成界面的话
|
| | | if (this.isInitFinish == false)
|
| | | {
|
| | | this.ShowForm();
|
| | | this.isInitFinish = true;
|
| | | return;
|
| | | }
|
| | | //把头部也一起初始化了
|
| | | this.topFrameLayout.RemoveAll();
|
| | | //初始化头部信息
|
| | | this.InitTopFrame();
|
| | |
|
| | | //刷新Body容器
|
| | | this.RefreshBodyFrame();
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 刷新Body容器
|
| | | /// </summary>
|
| | | private void RefreshBodyFrame()
|
| | | {
|
| | | //先清空
|
| | | this.listView.frameTable.RemoveAll();
|
| | | this.listView.frameTable.Height = Application.GetRealHeight(100);
|
| | |
| | | form.AddForm(title, listText, nowSelectNo);
|
| | | form.FinishSelectEvent += (selectNo) =>
|
| | | {
|
| | | if (selectNo == nowSelectNo)
|
| | | {
|
| | | //选择的是相同的
|
| | | return;
|
| | | }
|
| | | //-1:选择取消
|
| | | this.Text = selectNo == -1 ? string.Empty : listText[selectNo];
|
| | | nowSelectNo = selectNo;
|
| | |
| | | //记录起当前选择的功能类型
|
| | | this.RefreshDfunctionType();
|
| | |
|
| | | //设备改变功能类型的话,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | |
|
| | | //调用回调函数
|
| | | this.FinishSelectEvent?.Invoke(nowSelectNo);
|
| | | };
|
| | |
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | {
|
| | | MainPage.ListRoomViewFrom.Instance?.ShowForm();
|
| | | MainPage.ListRoomViewFrom.Instance?.RefreshListRoom();
|
| | | });
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | //从原来的房间移除设备
|
| | | this.DeleteDevice(device);
|
| | | //设备改变房间的话,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | | return;
|
| | | }
|
| | | //房间是否修改
|
| | |
| | | {
|
| | | this.AddDevice(room, device, saveRealRoom);
|
| | | }
|
| | | //设备改变房间的话,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | alert.Show();
|
| | |
|
| | | //Log出力
|
| | | HdlLogLogic.Current.WriteLog(ex, "界面重新激活异常");
|
| | | HdlLogLogic.Current.WriteLog(ex, "界面重新激活异常 " + UserCenterResourse.NowActionFormID);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | /// <returns></returns>
|
| | | public async static Task<bool> InitUserCenterMenmoryAndThread(bool ShowPrompted = true)
|
| | | {
|
| | | //调用这个方法,都需要重新刷新主页
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | | //如果是虚拟住宅
|
| | | if (Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | |
| | | //改名字
|
| | | btnNote.txtInput.FinishInputEvent();
|
| | |
|
| | | this.CloseForm();
|
| | |
|
| | | var form = new DeviceMacInfoEditorForm();
|
| | | form.AddForm(this.listNewDevice[0].DeviceAddr);
|
| | | };
|
| | |
| | | #region ■ 实现外部调用_______________________
|
| | |
|
| | | /// <summary>
|
| | | /// 添加新的设备到界面桌布中
|
| | | /// 添加新的设备到界面桌布中(外部调用)
|
| | | /// </summary>
|
| | | /// <param name="deviceAddr">设备Mac地址</param>
|
| | | public void AddDeviceToFormTable(string deviceAddr)
|
| | |
| | |
|
| | | //创建新的行
|
| | | this.AddDeviceMenuRow(deviceAddr);
|
| | |
|
| | | //记录当前的正在操作的设备的Mac地址
|
| | | this.nowActionDeviceMac = deviceAddr;
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 刷新指定设备行的信息(外部调用)
|
| | | /// </summary>
|
| | | /// <param name="deviceAddr">设备Mac地址</param>
|
| | | public void RefreshDeviceRow(string deviceAddr)
|
| | | {
|
| | | if (this.dicRowInfo.ContainsKey(deviceAddr) == true)
|
| | | {
|
| | | var row = this.dicRowInfo[deviceAddr];
|
| | | row.MenuRow?.RefreshControlInfo(true);
|
| | | //明细
|
| | | if (row.dicDetailRow != null)
|
| | | {
|
| | | foreach (var detailRow in row.dicDetailRow.Values)
|
| | | {
|
| | | detailRow.RefreshControlInfo();
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | //移除获取设备硬件信息的监听线程
|
| | | HdlDeviceHardInfoLogic.Current.RemoveDeviceHardInfoThread(listNewDevice[0]);
|
| | |
|
| | | //设备新入网
|
| | | if (UserCenterResourse.DicActionForm.ContainsKey("AddDeviceTypeListForm") == true)
|
| | | {
|
| | | this.LoadFormMethodByName("DeviceListMainForm", "RefreshDeviceRow", new object[] { listNewDevice[0].DeviceAddr });
|
| | | }
|
| | |
|
| | | base.CloseFormBefore();
|
| | | }
|
| | |
|
| | |
| | | /// </summary>
|
| | | private void InitMiddleFrame(string i_file)
|
| | | {
|
| | | if (i_file == string.Empty) { return; }
|
| | |
|
| | | if (i_file.EndsWith(".png") == true || i_file.EndsWith(".jpg") == true || i_file.EndsWith(".JPG") == true)
|
| | | {
|
| | | var btnPic = new ImageView();
|
| | |
| | | else
|
| | | {
|
| | | string textValue = System.Text.Encoding.UTF8.GetString(Shared.IO.FileUtils.ReadFile(i_file)).Trim();
|
| | | textValue = textValue.Replace(",", "\r\n");
|
| | | if (textValue.StartsWith("{") == true)
|
| | | {
|
| | | textValue = "{\r\n" + textValue.Substring(1);
|
| | | }
|
| | | if (textValue.EndsWith("}") == true)
|
| | | {
|
| | | textValue = textValue.Substring(0, textValue.Length - 1) + "\r\n}";
|
| | | }
|
| | |
|
| | | var btnText = new EditTextView();
|
| | | btnText.Width = bodyFrameLayout.Width;
|
| | | btnText.Height = bodyFrameLayout.Height;
|
| | | btnText.TextAlignment = TextAlignment.TopLeft;
|
| | | btnText.TextColor = UserCenterColor.Current.TextColor1;
|
| | | btnText.Text = textValue;
|
| | | bodyFrameLayout.AddChidren(btnText);
|
| | | this.SetTextContent(textValue);
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 自定义设置显示的文本
|
| | | /// </summary>
|
| | | /// <param name="i_text"></param>
|
| | | public void SetTextContent(string textValue)
|
| | | {
|
| | | textValue = textValue.Replace(",", "\r\n");
|
| | | if (textValue.StartsWith("{") == true)
|
| | | {
|
| | | textValue = "{\r\n" + textValue.Substring(1);
|
| | | }
|
| | | if (textValue.EndsWith("}") == true)
|
| | | {
|
| | | textValue = textValue.Substring(0, textValue.Length - 1) + "\r\n}";
|
| | | }
|
| | |
|
| | | var btnText = new EditTextView();
|
| | | btnText.Width = bodyFrameLayout.Width;
|
| | | btnText.Height = bodyFrameLayout.Height;
|
| | | btnText.TextAlignment = TextAlignment.TopLeft;
|
| | | btnText.TextColor = UserCenterColor.Current.TextColor1;
|
| | | btnText.Text = textValue;
|
| | | bodyFrameLayout.AddChidren(btnText);
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 一般方法___________________________
|
| | |
| | | listView.AddChidren(row1);
|
| | | row1.AddLeftCaption("设备缓存变量", 500);
|
| | | row1.AddRightArrow();
|
| | | row1.AddBottomLine();
|
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | |
|
| | | var form = new HideOptionMemoryListDeviceForm();
|
| | | form.AddForm();
|
| | | };
|
| | |
|
| | |
|
New file |
| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | | using ZigBee.Device;
|
| | |
|
| | | namespace Shared.Phone.UserCenter.HideOption
|
| | | {
|
| | | /// <summary>
|
| | | /// 本地缓存设备列表的界面
|
| | | /// </summary>
|
| | | public class HideOptionMemoryListDeviceForm : EditorCommonForm
|
| | | {
|
| | | #region ■ 变量声明___________________________
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 初始化_____________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 画面显示(底层会固定调用此方法,借以完成画面创建)
|
| | | /// </summary>
|
| | | public void ShowForm()
|
| | | {
|
| | | //设置头部信息
|
| | | base.SetTitleText("设备列表");
|
| | |
|
| | | //初始化中部信息
|
| | | this.InitMiddleFrame();
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 初始化中部信息
|
| | | /// </summary>
|
| | | private void InitMiddleFrame()
|
| | | {
|
| | | var listView = new VerticalListControl(23);
|
| | | listView.BackgroundColor = UserCenterColor.Current.White;
|
| | | listView.Height = bodyFrameLayout.Height;
|
| | | bodyFrameLayout.AddChidren(listView);
|
| | |
|
| | | var listDevice = Common.LocalDevice.Current.listAllDevice;
|
| | | for (int i = 0; i < listDevice.Count; i++)
|
| | | {
|
| | | this.AddRowControl(listView, listDevice[i], i != listDevice.Count - 1);
|
| | | }
|
| | |
|
| | | listView.AdjustRealHeight(Application.GetRealHeight(23));
|
| | | }
|
| | |
|
| | | private void AddRowControl(VerticalListControl listView, CommonDevice device, bool addLine)
|
| | | {
|
| | | var row1 = new RowLayoutControl(listView.rowSpace / 2);
|
| | | listView.AddChidren(row1);
|
| | | row1.frameTable.AddTopView(Common.LocalDevice.Current.GetDeviceEpointName(device), 800);
|
| | | row1.frameTable.AddBottomView(device.FilePath, 800);
|
| | | if (addLine == true)
|
| | | {
|
| | | row1.frameTable.AddBottomLine();
|
| | | }
|
| | | row1.frameTable.AddRightArrow();
|
| | |
|
| | | row1.frameTable.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var txtContent = Newtonsoft.Json.JsonConvert.SerializeObject(device);
|
| | |
|
| | | var form = new HideOptionFileContentForm();
|
| | | form.AddForm(string.Empty);
|
| | |
|
| | | form.SetTextContent(txtContent);
|
| | | };
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 一般方法___________________________
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|
| | |
| | | newRoom.Temperatrue = 0;
|
| | | }
|
| | |
|
| | | //添加房间,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | |
|
| | | HdlRoomLogic.Current.AddRoom(newRoom);
|
| | | this.FinishEditorEvent?.Invoke();
|
| | |
|
| | |
| | | //刷新左滑的房间列表界面的房间列表信息
|
| | | MainPage.ListRoomViewFrom.Instance.RefreshListRoom();
|
| | | }
|
| | |
|
| | | //算了,这里如果按下保存,则主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | |
|
| | | this.CloseForm();
|
| | | };
|
| | | }
|
| | |
| | | //调整桌布高度
|
| | | this.AdjustContrlTableHeight();
|
| | | }
|
| | | //删除楼层的话,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | | });
|
| | | };
|
| | | }
|
| | |
| | | //根据指定模式,初始化桌布控件
|
| | | this.InitFrameTableByMode();
|
| | | }
|
| | | //创建或者修改楼层的话,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | //调整桌布高度
|
| | | this.AdjustContrlTableHeight();
|
| | | }
|
| | | //删除房间的话,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | | });
|
| | | };
|
| | | }
|
| | |
| | | UserCenterResourse.ResidenceOption.SafetyShortcut = false;
|
| | | UserCenterResourse.ResidenceOption.Save();
|
| | | btnShortCut.IsSelected = false;
|
| | | //取消主页的「安防」捷径的话,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | | });
|
| | | }
|
| | | else
|
| | |
| | | UserCenterResourse.ResidenceOption.SafetyShortcut = true;
|
| | | UserCenterResourse.ResidenceOption.Save();
|
| | | btnShortCut.IsSelected = true;
|
| | | //创建主页的「安防」捷径的话,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | | });
|
| | | }
|
| | | };
|
| | |
| | | //关闭全部界面,直到主页为止 |
| | | UserCenterLogic.CloseAllOpenForm(); |
| | | //强制显示自动化列表界面 |
| | | UserCenterResourse.ResidenceOption.CategoryPageSwitchIndex = 2; |
| | | |
| | | this.BottomMenuClickEvent(MenuSelectEnum.A分类, false); |
| | | UserCenterResourse.ResidenceOption.CategoryPageSwitchIndex = 2;
|
| | |
|
| | | this.nowSelectMenu = MenuSelectEnum.A分类;
|
| | |
|
| | | //左滑菜单不可
|
| | | CommonPage.Instance.IsDrawerLockMode = true;
|
| | | if (listForm[1] == null)
|
| | | {
|
| | | var form = new Category.CategoryMainForm();
|
| | | this.bodyFrameView.AddChidren(form);
|
| | | form.ShowForm();
|
| | | //加缓存
|
| | | listForm[1] = form;
|
| | | } |
| | | else
|
| | | {
|
| | | ((Category.CategoryMainForm)listForm[1]).RefreshBodyView();
|
| | | }
|
| | | //设置全部控件的各种状态状态
|
| | | this.SetAllControlStatu(); |
| | | }
|
| | |
|
| | | #endregion |
| | |
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionFileListForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionGatewayListForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionMainForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionMemoryListDeviceForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\HideOption\HideOptionSearchAllFile.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Member\MemberNotEsixtForm.cs" />
|
| | | <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Password\CheckNewPhoneForm.cs" />
|