public void Save(SaveParam saveParam, string pathWhereToSave = "", string nameFileWithSettings = "\\settings") { if (pathWhereToSave == "") { pathWhereToSave = System.Windows.Forms.Application.StartupPath; } File.WriteAllBytes(pathWhereToSave + nameFileWithSettings, abstractCrypto.Encode(saveParam.ToString())); }