FormConfigRestoreSaveConfig Method |
save controls, tool strips, and manually saved strings
call this on form load
Namespace: ANDREICSLIB.HelpersAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static bool SaveConfig(
Form baseform,
string filename,
IEnumerable<Control> saveControls = null,
IEnumerable<ToolStripItem> saveToolStripItems = null,
IEnumerable<Tuple<string, string>> literalStrings = null
)
Public Shared Function SaveConfig (
baseform As Form,
filename As String,
Optional saveControls As IEnumerable(Of Control) = Nothing,
Optional saveToolStripItems As IEnumerable(Of ToolStripItem) = Nothing,
Optional literalStrings As IEnumerable(Of Tuple(Of String, String)) = Nothing
) As Boolean
public:
static bool SaveConfig(
Form^ baseform,
String^ filename,
IEnumerable<Control^>^ saveControls = nullptr,
IEnumerable<ToolStripItem^>^ saveToolStripItems = nullptr,
IEnumerable<Tuple<String^, String^>^>^ literalStrings = nullptr
)
static member SaveConfig :
baseform : Form *
filename : string *
?saveControls : IEnumerable<Control> *
?saveToolStripItems : IEnumerable<ToolStripItem> *
?literalStrings : IEnumerable<Tuple<string, string>>
(* Defaults:
let _saveControls = defaultArg saveControls null
let _saveToolStripItems = defaultArg saveToolStripItems null
let _literalStrings = defaultArg literalStrings null
*)
-> bool
Parameters
- baseform
- Type: System.Windows.FormsForm
- filename
- Type: SystemString
- saveControls (Optional)
- Type: System.Collections.GenericIEnumerableControl
a list of form controlls to save, except tool strip items - saveToolStripItems (Optional)
- Type: System.Collections.GenericIEnumerableToolStripItem
list of tool strip menu items which the checked value should be saved for - literalStrings (Optional)
- Type: System.Collections.GenericIEnumerableTupleString, String
a list of tuple string/strings to manually save
Return Value
Type:
Boolean
See Also