| | |
| | | string fullName = UserCenterLogic.CombinePath(DirNameResourse.LocalMemoryDirectory, DirNameResourse.ResidenceSortFile);
|
| | | UserCenterLogic.SaveFileContent(fullName, listResidenceSort);
|
| | |
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | if (this.Parent == null)
|
| | | {
|
| | |
| | |
|
| | | Room.InitAllRoom();
|
| | |
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //重新刷新列表
|
| | | this.listView.RemoveAll();
|
| | |
| | | }
|
| | | };
|
| | |
|
| | | if (info.IsOthreShare == true && info.AccountType != 1)
|
| | | if (info.IsOthreShare == true)
|
| | | {
|
| | | //分享的,又不拥有管理员权限的,不能更改
|
| | | //分享的,不能更改
|
| | | return;
|
| | | }
|
| | | //更改
|
| | |
| | | private void ShowEditorNameForm(Common.ResponseEntity.ResidenceObj info, NormalViewControl btnHome)
|
| | | {
|
| | | //生成一个弹窗画面
|
| | | var dialogForm = new DialogInputFrameControl(this, DialogFrameMode.OnlyInput);
|
| | | var dialogForm = new DialogInputControl();
|
| | | //编辑住宅
|
| | | dialogForm.SetTitleText(Language.StringByID(R.MyInternationalizationString.uChangedName));
|
| | | //请输入住宅名称
|
| | |
| | | private void ShowAddNameForm()
|
| | | {
|
| | | //生成一个弹窗画面
|
| | | var dialogForm = new DialogInputFrameControl(this, DialogFrameMode.OnlyInput);
|
| | | var dialogForm = new DialogInputControl();
|
| | | //创建住宅
|
| | | dialogForm.SetTitleText(Language.StringByID(R.MyInternationalizationString.uCreatResidence));
|
| | | //请输入住宅名称
|
| | |
| | | {
|
| | | if (Config.Instance.HomeFilePathList.Contains($"House_{keys}.json") == false)
|
| | | {
|
| | | //保存顺序
|
| | | listResidenceSort.Remove(keys);
|
| | | Room.CurrentRoom.SaveFloorSort(listResidenceSort);
|
| | |
|
| | | this.listView.RemoveAll();
|
| | | //数据已经变更
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | |
| | | /// ZigbeeHomeGuid
|
| | | /// </summary>
|
| | | public string Id = string.Empty;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 编辑住宅的启动参数
|
| | | /// </summary>
|
| | | public class EditorResidencePra : IfacePraCommon
|
| | | {
|
| | | /// <summary>
|
| | | /// RequestVersion
|
| | | /// </summary>
|
| | | public string RequestVersion = Common.CommonPage.RequestVersion;
|
| | | /// <summary>
|
| | | /// LoginAccessToken
|
| | | /// </summary>
|
| | | public string LoginAccessToken = Common.Config.Instance.Token;
|
| | | /// <summary>
|
| | | /// ZigbeeHomeId
|
| | | /// </summary>
|
| | | public string HomeId = "";
|
| | | /// <summary>
|
| | | /// Name
|
| | | /// </summary>
|
| | | public string Name = string.Empty;
|
| | | }
|
| | |
|
| | | #endregion
|