예제 #1
0
 void t_Tick(object sender, EventArgs e)
 {
     _mandelBrot.NextLine();
     this.ContentPanel.Background = new ImageBrush()
     {
         ImageSource = _mandelBrot.Source
     };
     _dispatcherTimer.Interval = _mandelBrot.IsComplete
                                     ? TimeSpan.FromSeconds(2.0)
                                     : TimeSpan.FromMilliseconds(1.0);
 }