Exemplo n.º 1
0
 protected override void OnApply(PageApplyEventArgs e)
 {
     base.OnApply(e);
     if (OnOptionsChanged != null)
     {
         var optionsEventArg = new OptionsChangedEventArgs
         {
             Interval = Interval,
         };
         OnOptionsChanged(this, optionsEventArg);
     }
 }
 private void OnOptionsChanged(object sender, OptionsChangedEventArgs e)
 {
     _timer.Interval = TimeSpan.FromSeconds(e.Interval).TotalMilliseconds;
     WriteToOutputWindow(String.Format("Interval changed to {0} seconds", e.Interval));
 }