Esempio n. 1
0
        public void Select(GraphItemViewModel viewModelObject)
        {
            if (viewModelObject == null)
            {
                return;
            }

            InspectorViewModel.TargetViewModel = viewModelObject;

            if (viewModelObject.IsSelected)
            {
                return;
            }
            if (LastMouseEvent != null && LastMouseEvent.ModifierKeyStates != null && !LastMouseEvent.ModifierKeyStates.Alt)
            {
                DeselectAll();
            }

            viewModelObject.IsSelected = true;
            InvertApplication.SignalEvent <IGraphSelectionEvents>(
                _ => _.SelectionChanged(viewModelObject));
        }
Esempio n. 2
0
 public GenericChildItemHeaderDrawer(GraphItemViewModel viewModelObject)
     : base(viewModelObject)
 {
 }
Esempio n. 3
0
 protected Drawer(GraphItemViewModel viewModelObject)
 {
     ViewModelObject = viewModelObject;
 }