/// <summary> /// Raise the given property change event. /// </summary> /// <param name="propertyKey">The key associated with the property that changed.</param> /// <param name="propertyCode">The code that identifies the property that changed.</param> /// <param name="oldValue">The old value of the property.</param> /// <param name="newValue">The new value of the property.</param> protected virtual void FirePropertyChangedEvent(object propertyKey, int propertyCode, Object oldValue, Object newValue) { PPropertyEventArgs e = null; // Fire the event to handlers registered for this particular property change event. PPropertyEventHandler h = GetPropertyHandlers(propertyKey); if (h != null) { e = new PPropertyEventArgs(oldValue, newValue); h(this, e); } if (parent != null && (propertyCode & propertyChangeParentMask) != 0) { if (e == null) e = new PPropertyEventArgs(oldValue, newValue); parent.FireChildPropertyChangedEvent(e, propertyKey, propertyCode); } }
/// <summary> /// Called by child node to forward property change events up the node tree so that /// property change listeners registered with this node will be notified of property /// changes of its children nodes. /// </summary> /// <remarks> /// For performance reason only propertyCodes listed in the propertyChangeParentMask /// are forwarded. /// </remarks> /// <param name="e">The property change event to forward.</param> /// <param name="propertyKey">The key associated with the property that changed.</param> /// <param name="propertyCode">The code that identifies the property that changed.</param> protected virtual void FireChildPropertyChangedEvent(PPropertyEventArgs e, object propertyKey, int propertyCode) { PPropertyEventHandler h = GetPropertyHandlers(propertyKey); if (h != null) { h(this, e); } if (parent != null && (propertyCode & propertyChangeParentMask) != 0) { parent.FireChildPropertyChangedEvent(e, propertyKey, propertyCode); } }
protected void node2_FullBoundsChanged(object sender, PPropertyEventArgs e) { UpdateLink(); }
/// <summary> /// Refresh overview. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Camera_ViewChanged(object sender, PPropertyEventArgs e) { // Refresh OverView. RefreshOverView(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Object_VisibleChanged(object sender, PPropertyEventArgs e) { if (m_obj.Visible && m_obj.Selected) Show(); else Hide(); }
/// <summary> /// When this PLens is dragged around, adjust the camera's view transform so that the /// squiggles remain fixed at their original locations. /// </summary> /// <param name="sender">The source of this TransformChanged event.</param> /// <param name="e">A PPropertyEventArgs that contains the event data.</param> protected virtual void PLens_TransformChanged(object sender, PPropertyEventArgs e) { camera.ViewMatrix = InverseMatrix; }
protected void camera_ViewTransformChanged(object sender, PPropertyEventArgs e) { gridLayer.Bounds = Canvas.Camera.ViewBounds; }
/// <summary> /// Raises the InteractingChanged event by invoking the delegates. /// </summary> /// <param name="e">An EventArgs that contains the event data.</param> /// <remarks> /// This event is raised when the interacting state of the canvas changes. /// </remarks> protected virtual void OnInteractingChanged(PPropertyEventArgs e) { if (InteractingChanged != null) { //Invokes the delegates. InteractingChanged(this, e); } }
void Sheet_BoundsChanged(object sender, PPropertyEventArgs e) { MyLayoutChildren(); }
/// <summary> /// event on visibility change. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void PPathwayNode_VisibleChanged(object sender, PPropertyEventArgs e) { Refresh(); }
/// <summary> /// Event on layer change. /// </summary> /// <param name="e"></param> protected virtual void OnHightLightChanged(PPropertyEventArgs e) { if (m_onHighLightChanged != null) m_onHighLightChanged(this, e); }
internal void RaiseHightLightChanged() { PPropertyEventArgs e = new PPropertyEventArgs(!this.m_selected, this.m_selected); OnHightLightChanged(e); }
void Camera_BoundsChanged(object sender, PPropertyEventArgs e) { UpdateTransparent(); }
/// <summary> /// Invoked when the full bounds of the root changes. /// </summary> /// <param name="sender">The source of the property changed event.</param> /// <param name="e">A PPropertyEventArgs that contains the event data.</param> protected virtual void root_FullBoundsChanged(object sender, PPropertyEventArgs e) { scrollableControl.UpdateScrollbars(); }
/// <summary> /// Invoked when the camera's view changes. /// </summary> /// <param name="sender">The source of the property changed event.</param> /// <param name="e">A PPropertyEventArgs that contains the event data.</param> protected virtual void camera_ViewTransformChanged(object sender, PPropertyEventArgs e) { scrollableControl.UpdateScrollbars(); }