| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using HDL_ON.DAL.Server; |
| | | using HDL_ON.Entity; |
| | | using Shared; |
| | | |
| | |
| | | { |
| | | try |
| | | { |
| | | var responsePack = new DAL.Server.HttpServerRequest().EditResidenceInfo(); |
| | | var responsePack = new HttpServerRequest().EditResidenceInfo(); |
| | | |
| | | if (responsePack.StateCode.ToUpper() == "SUCCESS") |
| | | if (responsePack.StateCode.ToUpper() == StateCode.SUCCESS) |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | |
| | | /// </summary> |
| | | void LoadEvent_EditResidencAddress() |
| | | { |
| | | #if stage2 |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | | Action<string> callBack = (str) => |
| | |
| | | DB_ResidenceData.residenceData.residecenInfo.Address = str; |
| | | var responsePack = new DAL.Server.HttpServerRequest().EditResidenceInfo(); |
| | | |
| | | if (responsePack.StateCode.ToUpper() == "SUCCESS") |
| | | if (responsePack.StateCode.ToUpper() == StateCode.SUCCESS) |
| | | { |
| | | btnResidenceAddress.Text = str; |
| | | OnAppConfig.Instance.SaveUserConfig(); |
| | |
| | | }); |
| | | } |
| | | }; |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.ResidenceAddress, DB_ResidenceData.residenceData.residecenInfo.Name, callBack,StringId.HouseAddressCannotBeEmpty,0,new List<string>()); |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.ResidenceAddress, DB_ResidenceData.residenceData.residecenInfo.Name, callBack, StringId.HouseAddressCannotBeEmpty, 0, new List<string>()); |
| | | }; |
| | | btnResidenceAddress.MouseUpEventHandler = eventHandler; |
| | | btnLocationAddressIcon.MouseUpEventHandler = eventHandler; |
| | | #endif |
| | | } |
| | | |
| | | /// <summary> |