This class is used to implement events which indicate that an object sequence has changed, and explicitly provide SharpViews with information about which objects in the sequence changed. This may be done either to improve performance, or so that the client can force the display to update for a particular sequence of objects even though the sequence may NOT actually have changed. The arguments indicate the first object in the value when the display was last updated that has been deleted, or (if numberDeleted is zero) the one before which objects have been added. The other two arguments indicate how many objects in the current display have been removed and how many (in the current value of the property) are considered new.
Inheritance: System.EventArgs
コード例 #1
0
 public void PropChanged(object sender, ObjectSequenceEventArgs args)
 {
     foreach (var target in m_targets)
     {
         target.PropChanged(sender, args);
     }
 }
コード例 #2
0
		public void PropChanged(object sender, ObjectSequenceEventArgs args)
		{
			foreach (var target in m_targets)
			{
				target.PropChanged(sender, args);
			}
		}
コード例 #3
0
        /// <summary>
        /// Sent when the contents of the property we are monitoring changes.
        /// </summary>
        public override void PropChanged(object sender, ObjectSequenceEventArgs args)
        {
            var newTs     = Fetcher().ToList();
            var currentTs = (from hookup in Children select(T) hookup.Target).ToList();

            UpdateDisplayOfSubSequence(newTs, args.FirstChange, args.FirstChange + args.NumberAdded, args.FirstChange + args.NumberDeleted);
        }
コード例 #4
0
		private void RaiseParagraphsChanged(object obj, ObjectSequenceEventArgs args)
		{
		   if (ParagraphsChanged != null)
			   ParagraphsChanged(this, args);
		}
コード例 #5
0
		private void RaiseParagraphsChanged(object obj, ObjectSequenceEventArgs args)
		{
			paragraphChangedEvent = new ObjectSequenceEventArgs(args.FirstChange, args.NumberAdded, args.NumberDeleted);
		}
コード例 #6
0
 /// <summary>
 /// Sent when the contents of the property we are monitoring changes.
 /// </summary>
 public override void PropChanged(object sender, ObjectSequenceEventArgs args)
 {
 }
コード例 #7
0
 public virtual void PropChanged(object sender, ObjectSequenceEventArgs args)
 {
 }
コード例 #8
0
ファイル: Hookup.cs プロジェクト: bbriggs/FieldWorks
		public virtual void PropChanged(object sender, ObjectSequenceEventArgs args)
		{
		}
コード例 #9
0
ファイル: RootBoxTests.cs プロジェクト: sillsdev/FieldWorks
		public void PropChanged(object sender, ObjectSequenceEventArgs args)
		{
			PropChangedCalled = true;
		}