Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

DialogPage Class-Pages in OptionsPage window persist value even after pressing cancel button(Vs 2015 isolated shell application)

$
0
0

I created customs Options Page for my Vs 2015 isolated shell with the help of following link 
https://msdn.microsoft.com/en-us/library/bb166195.aspx?f=255&MSPPError=-2147217396.

It is working fine as expected except in one corner case.When I delete all registry entries(related to my isolated shell app) and open Tools->options Page->mycustoms page,changing value and pressing cancel button make mycustoms page to persist with the changed value when i open again mycustoms page.It is expected as when we click cancel button it tries to load property values from registry but in our case registry is empty.

I thought of using boolean property.It wil be set to true once savesettingtostorage is called.So in loadsettingsfromstorage func,if boolean property value is false i will load mycustoms page with default values.

Is there any better way??Is it possible to know whether loadsettingfromstorage func does not loading empty values??



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>