SettingsSerializer Class |
Namespace: Advanced_Combat_Tracker
public class SettingsSerializer : IDisposable
The SettingsSerializer type exposes the following members.
Name | Description | |
---|---|---|
![]() | SettingsSerializer |
Store simple settings from controls into an XML element
|
Name | Description | |
---|---|---|
![]() | AddBooleanSetting |
Add a boolean object to serialize
|
![]() | AddControlSetting |
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
|
![]() | AddDirectoryInfoSetting |
Add a DirectoryInfo object to serialize
|
![]() | AddIntSetting |
Add an Int32 object to serialize
|
![]() | AddLongSetting |
Add an Int64 object to serialize
|
![]() | AddStringSetting |
Add a String object to serialize
|
![]() | Dispose | Releases all resources used by the SettingsSerializer |
![]() | ExportToXml |
Serializes all of the objects currently added to XML
|
![]() | Finalize | (Overrides ObjectFinalize.) |
![]() | FinializeComboBoxes |
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.
|
![]() | ImportFromXml |
Import the serialized settings from the XML pull parser
|
![]() | RemoveControlSetting |