Beispiel #1
0
 public override void OnDataSourceChanged(object sender, DataSourceChangeEventArgs e)
 {
     base.OnDataSourceChanged(this, e);
     if (child != null)
     {
         if (child.localDataSourceIsNull & child.localLogicalParentIsNull)
         {
             child.OnDataSourceChanged(sender, e);
         }
     }
 }
Beispiel #2
0
//		public void putWidgetOnTop(GraphicObject w)
//		{
//			if (Children.Contains(w))
//			{
//				lock (children) {
//					Children.Remove (w);
//					Children.Add (w);
//				}
//			}
//		}
//		public void putWidgetOnBottom(GraphicObject w)
//		{
//			if (Children.Contains(w))
//			{
//				lock (children) {
//					Children.Remove (w);
//					Children.Insert (0, w);
//				}
//			}
//		}

        #region GraphicObject overrides
        public override void OnDataSourceChanged(object sender, DataSourceChangeEventArgs e)
        {
            base.OnDataSourceChanged(this, e);
            lock (children) {
                foreach (GraphicObject g in children)
                {
                    if (g.localDataSourceIsNull & g.localLogicalParentIsNull)
                    {
                        g.OnDataSourceChanged(sender, e);
                    }
                }
            }
        }
Beispiel #3
0
        public override void OnDataSourceChanged(object sender, DataSourceChangeEventArgs e)
        {
            base.OnDataSourceChanged(this, e);

            childrenRWLock.EnterReadLock();
            foreach (GraphicObject g in Children)
            {
                if (g.localDataSourceIsNull & g.localLogicalParentIsNull)
                {
                    g.OnDataSourceChanged(g, e);
                }
            }
            childrenRWLock.ExitReadLock();
        }
Beispiel #4
0
 public virtual void OnDataSourceChanged(object sender, DataSourceChangeEventArgs e)
 {
     DataSourceChanged.Raise (this, e);
     #if DEBUG_BINDING
     Debug.WriteLine("New DataSource for => {0} \n\t{1}=>{2}", this.ToString(),e.OldDataSource,e.NewDataSource);
     #endif
 }
Beispiel #5
0
 protected virtual void onParentChanged(object sender, DataSourceChangeEventArgs e)
 {
     ParentChanged.Raise (this, e);
     if (logicalParent == null)
         LogicalParentChanged.Raise (this, e);
 }
Beispiel #6
0
 protected virtual void onLogicalParentDataSourceChanged(object sender, DataSourceChangeEventArgs e)
 {
     if (localDataSourceIsNull)
         OnDataSourceChanged (this, e);
 }
Beispiel #7
0
 protected virtual void onLogicalParentChanged(object sender, DataSourceChangeEventArgs e)
 {
     LogicalParentChanged.Raise (this, e);
 }
Beispiel #8
0
		public virtual void OnDataSourceChanged(object sender, DataSourceChangeEventArgs e){
			DataSourceChanged.Raise (this, e);
			#if DEBUG_BINDING
			Debug.WriteLine("New DataSource for => {0} \n\t{1}=>{2}", this.ToString(),e.OldDataSource,e.NewDataSource);
			#endif
		}
Beispiel #9
0
		protected virtual void onLogicalParentDataSourceChanged(object sender, DataSourceChangeEventArgs e){
			if (localDataSourceIsNull)
				OnDataSourceChanged (this, e);
		}
Beispiel #10
0
		protected virtual void onLogicalParentChanged(object sender, DataSourceChangeEventArgs e) {
			LogicalParentChanged.Raise (this, e);
		}
Beispiel #11
0
		protected virtual void onParentChanged(object sender, DataSourceChangeEventArgs e) {
			ParentChanged.Raise (this, e);
			if (logicalParent == null)
				LogicalParentChanged.Raise (this, e);
		}
Beispiel #12
0
 public override void OnDataSourceChanged(object sender, DataSourceChangeEventArgs e)
 {
     base.OnDataSourceChanged (this, e);
     if (child != null)
     if (child.localDataSourceIsNull & child.localLogicalParentIsNull)
             child.OnDataSourceChanged (sender, e);
 }
Beispiel #13
0
 public override void OnDataSourceChanged(object sender, DataSourceChangeEventArgs e)
 {
     base.OnDataSourceChanged (this, e);
     foreach (GraphicObject g in children)
         if (g.localDataSourceIsNull & g.localLogicalParentIsNull)
             g.OnDataSourceChanged (sender, e);
 }