Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        /// <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);
            }
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
			public void EhParentTunnelingEventHappened(IDocumentNode sender, IDocumentNode originalSource, TunnelingEventArgs e)
			{
			}
 public void EhParentTunnelingEventHappened(IDocumentNode sender, IDocumentNode originalSource, TunnelingEventArgs e)
 {
 }
 protected void OnTunneledEvent(object origin, TunnelingEventArgs e)
 {
     TunneledEvent?.Invoke(this, origin, e);
 }
Ejemplo n.º 7
0
		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);
		}
Ejemplo n.º 8
0
 /// <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);
 }
Ejemplo n.º 9
0
 /// <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);
 }
Ejemplo n.º 10
0
 /// <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);
 }