コード例 #1
0
        private void GetParamServer() //get save parameters to binding
        {
            void GetParam(string paramName, SetMetod objParam)
            {
                string param1 = keeper.GetParam(paramName);

                if (string.IsNullOrEmpty(param1))
                {
                    objParam(string.Empty);
                }
                else
                {
                    objParam(StringCipher.Decrypt(param1, CRYPTED_KEY));
                }
            }

            GetParam("Parameter_1", ParamServer.SetNameServer);
            GetParam("Parameter_2", ParamServer.SetNameBase);
            GetParam("Parameter_3", ParamServer.SetLogin);
            ParamServer.IndexRow = keeper.GetParam("IndexRow");
        }