protected override void OnApply(PageApplyEventArgs e) {
     base.OnApply(e);
     bool flag = OnOptionsChanged == null;
     if (!flag) {
         var optionsEventArg = new OptionsChangedEventArgs
         {
             PauseWhileDebugging = PauseWhileDebugging,
             Interval = TimerSaveInterval,
             MaximumShelvesets = MaximumShelvesets,
         	OutputPane = OutputPane,
             ShelvesetName = ShelvesetName,
         };
         OnOptionsChanged(this, optionsEventArg);
     }
 }
 private void Options_OnOptionsChanged(object sender, OptionsChangedEventArgs e)
 {
     if (_autoShelve != null)
     {
         _autoShelve.MaximumShelvesets = e.MaximumShelvesets;
         _autoShelve.ShelvesetName = e.ShelvesetName;
         _autoShelve.TimerInterval = e.Interval;
     }
 }