private void NextPart() { switch (this.currentPart) { case 0: this.Canvas.Children.RemoveAt(1); this.Canvas.Children.Add(this.LoadResource("Monotone.Title.xaml")); break; case 1: this.Canvas.Children.RemoveAt(1); Spiral spiral = new Spiral(); this.Canvas.Children.Add(spiral); spiral.Start(); break; case 2: ((Spiral)this.Canvas.Children[1]).Stop(); this.Canvas.Children.RemoveAt(1); Stroposcope stroposcope = new Stroposcope(); this.Canvas.Children.Add(stroposcope); stroposcope.Start(); break; case 3: ((Stroposcope)this.Canvas.Children[1]).Stop(); this.Canvas.Children.RemoveAt(1); this.Canvas.Children.Add(this.LoadResource("Monotone.End.xaml")); break; } this.currentPart++; }