public static void ApplyModel(IEnumerable <ReferenceModel> views, DataBinderForNGUI.Model model) { foreach (var view in views) { view.Model = model; } }
protected override void OnChange() { if (model == null) { var property = PropertyValue as DataBinderForNGUI.Model; if (property == null) { return; } if (model != null) { model.OnChange -= OnModelChanged; } model = property; model.OnChange += OnModelChanged; } OnModelChanged(null); }