void ChangeSelection(IInteractiveContentPresenter newSelection) { if (newSelection == myCurrentSelection) { return; } myCurrentSelection = newSelection; if (mySelectionListener != null) { mySelectionListener.Undo(); mySelectionListener = null; } if (newSelection != null) { mySelectionListener = new PropertyListener(); mySelectionListener.StartListen(); myCurrentSelection.ApplyFocusedStyle(); mySelectionListener.StopListen(); WindowlessBringIntoView(newSelection); } Update(); OnSelectionChanged(); }
void OnClickDown() { if (myClickListener == null) { myClickListener = new PropertyListener(); myClickListener.StartListen(); myCurrentSelection.ApplyClickedStyle(); myClickListener.StopListen(); } }
void OnClickDown() { if (myClickListener == null) { myClickListener = new PropertyListener(); myClickListener.StartListen(); myCurrentSelection.ApplyClickedStyle(); myClickListener.StopListen(); } }
void ChangeSelection(IInteractiveContentPresenter newSelection) { if (newSelection == myCurrentSelection) return; myCurrentSelection = newSelection; if (mySelectionListener != null) { mySelectionListener.Undo(); mySelectionListener = null; } if (newSelection != null) { mySelectionListener = new PropertyListener(); mySelectionListener.StartListen(); myCurrentSelection.ApplyFocusedStyle(); mySelectionListener.StopListen(); WindowlessBringIntoView(newSelection); } Update(); OnSelectionChanged(); }