public override void OnDataSourceChanged(object sender, DataSourceChangeEventArgs e) { base.OnDataSourceChanged(this, e); if (child != null) { if (child.localDataSourceIsNull & child.localLogicalParentIsNull) { child.OnDataSourceChanged(sender, e); } } }
// 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); } } } }
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(); }
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 }
protected virtual void onParentChanged(object sender, DataSourceChangeEventArgs e) { ParentChanged.Raise (this, e); if (logicalParent == null) LogicalParentChanged.Raise (this, e); }
protected virtual void onLogicalParentDataSourceChanged(object sender, DataSourceChangeEventArgs e) { if (localDataSourceIsNull) OnDataSourceChanged (this, e); }
protected virtual void onLogicalParentChanged(object sender, DataSourceChangeEventArgs e) { LogicalParentChanged.Raise (this, e); }
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 }
protected virtual void onLogicalParentDataSourceChanged(object sender, DataSourceChangeEventArgs e){ if (localDataSourceIsNull) OnDataSourceChanged (this, e); }
public override void OnDataSourceChanged(object sender, DataSourceChangeEventArgs e) { base.OnDataSourceChanged (this, e); if (child != null) if (child.localDataSourceIsNull & child.localLogicalParentIsNull) child.OnDataSourceChanged (sender, e); }
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); }