private void EhDocumentTunneledEvent(object arg1, object arg2, TunnelingEventArgs e) { if (e is Altaxo.Main.DocumentPathChangedEventArgs && _view != null) { _view.SetDocumentNameAndLocalImages(TextDocument.Name, TextDocument.Images); Title = GetTitleFromDocumentName(TextDocument); } }
/// <summary> /// Fires the <see cref="TunneledEvent"/> event. /// </summary> /// <param name="originalSource">The original source of the tunneled event.</param> /// <param name="e">The <see cref="TunnelingEventArgs"/> instance containing the event data.</param> protected virtual void OnTunnelingEvent(IDocumentLeafNode originalSource, TunnelingEventArgs e) { var ev = TunneledEvent; if (null != ev) { ev(this, originalSource, e); } }
public override void EhParentTunnelingEventHappened(IDocumentNode sender, IDocumentNode originalSource, TunnelingEventArgs e) { // since we deal with relative path, we have to watch changes to our path too if (e is Main.DocumentPathChangedEventArgs) { var node = InternalDocNode; if (null != node) { _docNodePath = RelativeDocumentPath.GetRelativePathFromTo(_parent, node); } } base.EhParentTunnelingEventHappened(sender, originalSource, e); }
public void EhParentTunnelingEventHappened(IDocumentNode sender, IDocumentNode originalSource, TunnelingEventArgs e) { }
protected void OnTunneledEvent(object origin, TunnelingEventArgs e) { TunneledEvent?.Invoke(this, origin, e); }
/// <summary> /// Is called by this instance if a tunneling event happened into this instance. The tunneling event triggers the <see cref="TunneledEvent"/> and is additionally distributed to all childs of this instance. /// </summary> /// <param name="e">The <see cref="TunnelingEventArgs"/> instance containing the event data.</param> public void EhSelfTunnelingEventHappened(TunnelingEventArgs e) { EhSelfTunnelingEventHappened(e, true); }
/// <summary> /// Is called by this instance if a tunneling event happened into this instance. /// The tunneling event triggers the <see cref="TunneledEvent"/> and is - depending on the provided parameter - also distributed to all childs of this instance. /// </summary> /// <param name="e">The <see cref="TunnelingEventArgs"/> instance containing the event data.</param> /// <param name="distributeThisEventToChilds">if set to <c>true</c>, the tunneling event is distributed to all childs of this instance.</param> public virtual void EhSelfTunnelingEventHappened(TunnelingEventArgs e, bool distributeThisEventToChilds) { OnTunnelingEvent(this, e); }
/// <summary> /// Is called by the parent when a tunneling event happened into the parent. /// </summary> /// <param name="sender">The sender (i.e. the parent of this instance).</param> /// <param name="originalSource">The original source of the tunneling event.</param> /// <param name="e">The <see cref="TunnelingEventArgs"/> instance containing the event data.</param> public virtual void EhParentTunnelingEventHappened(IDocumentNode sender, IDocumentNode originalSource, TunnelingEventArgs e) { OnTunnelingEvent(originalSource, e); }