Ejemplo n.º 1
0
        public SettingInfo GetSettings()
        {
            SettingInfo info = new SettingInfo();

            info.Url      = ClientInfo.Config.Get("global", "url", "");
            info.UserName = ClientInfo.Config.Get("global", "userName", "");
            info.Password = MainForm.DecryptPasssword(ClientInfo.Config.Get("global", "password", ""));

            string isSavePassword = ClientInfo.Config.Get("global", "isSavePassword", "");

            if (string.IsNullOrEmpty(isSavePassword) == false)
            {
                info.IsSavePassword = Convert.ToBoolean(isSavePassword);
            }


            // 未找到原因
            info.NotFoundReasons = ClientInfo.Config.Get("global", "notFoundReasons", "");


            return(info);
        }