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; }