Skip to content

A simple class for working with .properties files / Простой класс для работы с файлами .properties

License

Notifications You must be signed in to change notification settings

Vova43/PropertiesFile_CSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

PropertiesFile_CSharp

A simple class for working with .properties files. / Простой класс для работы с файлами .properties.

Usage example: / Пример использования:

File: Config.properties
Form.Point.Top=600
Form.Point.Left=459
// Save settings / Сохранить настройки
string FileConfig = "Config.properties";
Dictionary<string, string> KeyValue = Properties_File.LoadDictionary(FileConfig);
KeyValue["Form.Point.Top"] = this.Top + "";
KeyValue["Form.Point.Left"] = this.Left + "";
Properties_File.SaveDictionary();
// Load settings / Загрузить настройки
string FileConfig = "Config.properties";
Dictionary<string, string> KeyValue = Properties_File.LoadDictionary(FileConfig);
this.Top = Convert.ToInt32(KeyValue["Form.Point.Top"]);
this.Left = Convert.ToInt32(KeyValue["Form.Point.Left"]);

About

A simple class for working with .properties files / Простой класс для работы с файлами .properties

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages