public static MyBinding <T> CreateBinding <T>(T Source, string Key, Action <T> Fire, Action Fail) where T : class, INotifyPropertyChanged { var b = new MyBinding <T>(Key, Fire, Fail); b.Source = Source; AllBindings.Add(b); return(b); }
public static MyBinding <T> CreateBindingSP <U, T>(SourceProvider <U, T> SrcProvider, string Key, Action <T> Fire, Action Fail) where T : class, INotifyPropertyChanged where U : class, INotifyPropertyChanged { var b = new MyBinding <T>(Key, Fire, Fail); SrcProvider.Add(b); AllBindings.Add(b); return(b); }
public void Add(MyBinding <U> b) { Children.Add(b); OnFire(Source, new MyBinding <U>[] { b }); }