private void SetParamServer() //set save parameters to binding { void SetParam(string paramName, string value) { string criptStr = StringCipher.Encrypt(value, CRYPTED_KEY); if (!keeper.Save(paramName, criptStr)) { log.Save(paramName, "This parameter don't saved"); } } //Names and positions parameters best be changed in your project SetParam("Parameter_1", ParamServer.NameServer); SetParam("Parameter_2", ParamServer.NameBase); SetParam("Parameter_3", ParamServer.Login); SetParam("Parameter_4", PassInputBox.Password); keeper.Save("IndexRow", ParamServer.IndexRow); PassInputBox.Password = string.Empty; }