S
Sid Price
I have a class that inherits from SettingsProvider to allow my application
to do some special processing that is needed on some of the settings. The
class, "VMSettingsProvider", is in a class library in a namespace "VM".
My class provides all the required methods as described in the documentation
and it compiles correctly.
To test this I have added a setting using the designer for the application
and set the provider to "VM.VMSettingsProvider", again the code generated by
the designer compiles just fine.
The problem is that when I start my application and the "Initialize" method
of my class is called it has "nothing" as the application name passed to it,
when the base class "Initialize" is called an exception (Invalid Operation -
the Value can not be null) occurs.
Do I need to do more than the steps I have described for this to work? Any
pointers to the correct approach would be much appreciated.
Sid.
to do some special processing that is needed on some of the settings. The
class, "VMSettingsProvider", is in a class library in a namespace "VM".
My class provides all the required methods as described in the documentation
and it compiles correctly.
To test this I have added a setting using the designer for the application
and set the provider to "VM.VMSettingsProvider", again the code generated by
the designer compiles just fine.
The problem is that when I start my application and the "Initialize" method
of my class is called it has "nothing" as the application name passed to it,
when the base class "Initialize" is called an exception (Invalid Operation -
the Value can not be null) occurs.
Do I need to do more than the steps I have described for this to work? Any
pointers to the correct approach would be much appreciated.
Sid.