old mode 100644
new mode 100755
| | |
| | | var formTemp = UserCenterResourse.DicActionForm[formName];
|
| | | formTemp.CloseForm();
|
| | | UserCenterResourse.DicActionForm.Remove(formName);
|
| | | formTemp = null;
|
| | |
|
| | | return true;
|
| | | }
|
| | |
| | | //移除ID
|
| | | UserCenterResourse.listActionFormId.Remove(UserCenterResourse.DicActionForm[formName].FormID);
|
| | | //移除画面
|
| | | var formTemp = UserCenterResourse.DicActionForm[formName];
|
| | | UserCenterResourse.DicActionForm.Remove(formName);
|
| | | formTemp = null;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | //APP缓存加载开始
|
| | | UserCenterResourse.Option.AppCanSignout = false;
|
| | | //还原远程连接变量
|
| | | ZigBee.Device.ZbGateway.AllowRemoteCtrl = true;
|
| | |
|
| | | //只有在住宅ID不一样的时候才做这个操作
|
| | | if (Common.Config.Instance.HomeId != UserCenterResourse.Option.OldHomeStringId
|
| | |
| | | /// <returns></returns>
|
| | | public static string EncryptPassword(string keys, string strPsw)
|
| | | {
|
| | | try
|
| | | {
|
| | | if (strPsw == string.Empty)
|
| | | {
|
| | | return strPsw;
|
| | |
| | | {
|
| | | ret.AppendFormat("{0:X2}", b);
|
| | | }
|
| | | return ret.ToString();
|
| | | return ret.ToString().ToLower();
|
| | | }
|
| | | catch { return strPsw; }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | /// <param name="strPsw"></param>
|
| | | /// <returns></returns>
|
| | | public static string DecryptPassword(string keys, string strPsw)
|
| | | {
|
| | | try
|
| | | {
|
| | | if (strPsw == string.Empty)
|
| | | {
|
| | |
| | |
|
| | | return System.Text.Encoding.Default.GetString(ms.ToArray());
|
| | | }
|
| | | catch { return strPsw; }
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region ■ 文件保存和读取_____________________
|