Hello all,
I develop the part of app functionality. I have the databinding object 'A' and another object 'B'.
public class SomeProxy
{
public SomeProxy(BindingSource A)
{
var b = new B(A.SomeProperty);
}
}
public class B
{
public B(List<T> somePropertyFromA)
{
SomePropertyFromA = somePropertyFromA;
}
public int SomePropertyFromA{get;set;}
//Some autocalculated propeties, that are based on SomePropertyFromA
//I want to reculculate them, when the SomePropertyFromA will be changed
}
'B' object culculates some values, based on the property 'a' of the 'A' object. I want to bind property in object 'B' to the same property 'a' in 'A'. It's need to handle on changes of the 'a' property, because some UI controls are binded to 'B'-s properties. How can I do this?
Sorry for some oddness. Thanks