Ejemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            mRoomVisualizer = new WWRoomVisualizer(mCanvas);
            mRoomVisualizer.SetRoom(mRoom);
            mRoomVisualizer.ResetCamera(CAMERA_DISTANCE_DEFAULT);
            mRoomVisualizer.SetCrossFeed(mCrossFeed);

            if (!UpdateParameters())
            {
                Close();
            }

            UpdateRoomCanvas();

            mBw.DoWork             += BackgroundWorkerDoWork;
            mBw.RunWorkerCompleted += BackgroundWorkerRunWorkerCompleted;
        }
Ejemplo n.º 2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            mRoomVisualizer = new WWRoomVisualizer(mCanvas);
            mRoomVisualizer.SetRoom(mRoom);
            mRoomVisualizer.ResetCamera(CAMERA_DISTANCE_DEFAULT);
            mRoomVisualizer.SetCrossFeed(mCrossFeed);

            if (!UpdateParameters()) {
                Close();
            }

            UpdateRoomCanvas();

            mBw.DoWork += BackgroundWorkerDoWork;
            mBw.RunWorkerCompleted += BackgroundWorkerRunWorkerCompleted;
        }