Click or drag to resize

SettingsSerializer Class

Store simple settings from controls into an XML element
Inheritance Hierarchy
SystemObject
  Advanced_Combat_TrackerSettingsSerializer

Namespace: Advanced_Combat_Tracker
Assembly: Advanced Combat Tracker (in Advanced Combat Tracker.exe) Version: 3.8.5.288
Syntax
C#
public class SettingsSerializer : IDisposable

The SettingsSerializer type exposes the following members.

Constructors
 NameDescription
Public methodSettingsSerializer Store simple settings from controls into an XML element
Top
Methods
 NameDescription
Public methodAddBooleanSetting Add a boolean object to serialize
Public methodAddControlSetting Add a Control to serialize. Supported: CheckBox.Checked, RadioButton.Checked, NumericUpDown.Value, ListBox.Items(string[]), Panel.Width/Height, TextBox.Text Supported: ComboBox.Text(ComboBoxStyle.DropDown), Form.Left/Top/Width/Height, TrackBar.Value, CheckedListBox.Items(string[])/(ItemChecked) Supported: PictureBox.BackColor, Button.Text/Font
Public methodAddDirectoryInfoSetting Add a DirectoryInfo object to serialize
Public methodAddIntSetting Add an Int32 object to serialize
Public methodAddLongSetting Add an Int64 object to serialize
Public methodAddStringSetting Add a String object to serialize
Public methodDisposeReleases all resources used by the SettingsSerializer
Public methodExportToXml Serializes all of the objects currently added to XML
Protected methodFinalize
(Overrides ObjectFinalize)
Public methodFinializeComboBoxes During deserialization of ComboBoxes they are temporarily set as DropDown style to select the old value. This step returns all ComboBoxes to their original style and selects the correct index.
Public methodImportFromXml Import the serialized settings from the XML pull parser
Public methodRemoveControlSetting 
Top
See Also