Exemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            m_ViewModel    = (OptionsMenuViewModel)DataContext;
            m_DetailsModel = (WDetailsViewViewModel)SettingsDetails.DataContext;

            m_DetailsModel.ReflectObject(m_ViewModel.Settings);
        }
Exemplo n.º 2
0
        private void M_test_tree_SelectedItemChanged(object sender, System.Windows.RoutedPropertyChangedEventArgs <object> e)
        {
            CollisionGroupNode selected = e.NewValue as CollisionGroupNode;

            /*ClearSelection();
             *
             * List<CollisionTriangle> new_selected_tris = selected.GetTrianglesRecursive();
             *
             * foreach (CollisionTriangle t in new_selected_tris)
             * {
             *  AddTriangleToSelection(t);
             * }
             *
             * if (EditorSelection.SelectedObjects.Count > 1)
             * {
             *  EditorSelection.SelectedObjects[0].Properties.PropertyChanged += OnTriPropertyChanged;
             * }*/

            ClearSelection();

            m_DetailsViewModel.ReflectObject(selected);

            //OnSelectionChanged();
        }
Exemplo n.º 3
0
        private void OnEventSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (SelectedEvent != null)
            {
                SelectedEvent.CopyFromViewportRequested -= OnRequestCopyCameraFromViewport;
            }

            if (m_EventCombo.SelectedIndex == -1)
            {
                SelectedEvent = m_EventList.Events[0];
            }
            else
            {
                SelectedEvent = EventList.Events[m_EventCombo.SelectedIndex];
            }

            SelectedEvent.CopyFromViewportRequested += OnRequestCopyCameraFromViewport;

            m_EventDetailsViewModel.ReflectObject(SelectedEvent);

            m_NodeWindow.ActorTabControl.Items.Clear();

            foreach (Staff s in SelectedEvent.Actors)
            {
                if (s.StaffNodeGraph == null)
                {
                    s.StaffNodeGraph = GenerateActorTabItem(s);
                }

                m_NodeWindow.ActorTabControl.Items.Add(s.StaffNodeGraph);
            }



            m_NodeWindow.ActorTabControl.SelectedIndex = 0;
        }