protected override void OnActivate(System.ComponentModel.CancelEventArgs e) { if (_needsLoadOnNextActivate) { EnsureOptionPageCreated(); _pageControl.LoadSettings(); _needsLoadOnNextActivate = false; } }
protected override void OnActivate(System.ComponentModel.CancelEventArgs e) { EnsureOptionPageCreated(); if (s_needsLoadOnNextActivate) { // Reset the option store to the current state of the options. s_optionStore.SetOptions(s_optionService.GetOptions()); s_optionStore.SetRegisteredOptions(s_optionService.GetRegisteredOptions()); s_needsLoadOnNextActivate = false; } pageControl.LoadSettings(); }