private void LoadWif(string path)
        {
            var animationVM = new AnimationViewModel();

            WifLoader.LoadInSeparateThread(path, animationVM.CreateReceiver());

            var viewer = new AnimationWindow(animationVM);

            viewer.Show();
        }
Beispiel #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            //MainWindow window = new LuckyDraw.MainWindow();
            //window.Show();

            AnimationWindow winodw = new AnimationWindow();

            winodw.Show();
        }
Beispiel #3
0
        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);
            }
        }