Keeping very specific state of custom usercontrol
Hey folks,
I'm creating a winforms application which looks like a typical search form.
The main form panel includes many small custom UserControls that are built using a checkbox and a textbox.
I want the user to be able to save the last search criterias for next operation.
I thought of serialization, but the problem is that I don't want to save ALL the properties of the UserControl, I just need the checkbox state (boolean) and textbox text (string).
I know you can serialize only specific properties by overriding ISerializable interface, but I also don't want to disallow Serializing the whole UserControl if needed.
Is there any way I can serialize those two values within the controls' context without overriding ISerializable?
does anyone have a better idea for this issue?
Thanks,
Mikey