private void LoadWif(string path) { var animationVM = new AnimationViewModel(); WifLoader.LoadInSeparateThread(path, animationVM.CreateReceiver()); var viewer = new AnimationWindow(animationVM); viewer.Show(); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); //MainWindow window = new LuckyDraw.MainWindow(); //window.Show(); AnimationWindow winodw = new AnimationWindow(); winodw.Show(); }
private void OnRenderScript() { if (HasFilename() && Configuration.AUTO_SAVE) { Save(); } var animationVM = new AnimationViewModel(); var raytracer = new Renderer(); var receiver = animationVM.CreateReceiver(); try { raytracer.Render(this.Source.Text, receiver); var viewer = new AnimationWindow(animationVM); viewer.Show(); } catch (Exception e) { MessageBox.Show(e.Message); } }