protected void SetModel <T> (IListView <T> view, IListModel <T> model) { if (model == null) { view.SetModel(null); return; } view.SetModel(model, 0.0); }
protected void SetModel <T> (IListView <T> view, IListModel <T> model) { if (view.Model != null) { model_positions[view.Model] = view.Vadjustment != null ? view.Vadjustment.Value : 0; } if (model == null) { view.SetModel(null); return; } if (!model_positions.ContainsKey(model)) { model_positions[model] = 0.0; } view.SetModel(model, model_positions[model]); }