public ModelProxy(Shared.sv.SettingsView settingsView, SettingsViewRecyclerAdapter adapter, RecyclerView recyclerView) { _Model = settingsView.Model; _Root = settingsView.Root; _Adapter = adapter; _RecyclerView = recyclerView; _Root.SectionCollectionChanged += OnRootSectionCollectionChanged; _Root.CollectionChanged += OnRootCollectionChanged; ViewTypes = UpdateTypes(); }
/// <summary> /// Dispose the specified disposing. /// </summary> /// <returns>The dispose.</returns> /// <param name="disposing">If set to <c>true</c> disposing.</param> protected override void Dispose(bool disposing) { if (!_disposed) { _settingsView = null; _tableView = null; } _disposed = true; base.Dispose(disposing); }
/// <summary> /// Initializes a new instance of the <see cref="T:Jakar.SettingsView.iOS.SettingsTableSource"/> class. /// </summary> /// <param name="settingsView">Settings view.</param> public SettingsTableSource(Shared.sv.SettingsView settingsView) { _settingsView = settingsView; _settingsView.ModelChanged += (sender, e) => { if (_tableView != null) { _tableView.ReloadData(); // reflect a dynamic cell height _tableView.PerformBatchUpdates(null, null); } }; }
internal PickerTableViewController(PickerCellView pickerCellView, UITableView tableView, INavigation shellNavigation = null) : base(UITableViewStyle.Grouped) { _pickerCell = pickerCellView.Cell as PickerCell; _pickerCellNative = pickerCellView; _parent = pickerCellView.CellParent; _source = _pickerCell.ItemsSource as IList; _tableView = tableView; _shellNavigation = shellNavigation; _pickerCell.SelectedItems ??= new List <object>(); SetUpProperties(); }
protected override void Dispose(bool disposing) { if (disposing) { _pickerCell = null; _selectedCache = null; _source = null; _parent = null; _accentColor.Dispose(); _accentColor = null; _titleColor?.Dispose(); _titleColor = null; _background?.Dispose(); _background = null; _tableView = null; } base.Dispose(disposing); }
public SVItemDecoration(Drawable drawable, Shared.sv.SettingsView settingsView) { _Drawable = drawable; _SettingsView = settingsView; }
/// <summary> /// Initializes a new instance of the <see cref="T:Jakar.SettingsView.iOS.SettingsLagacyTableSource"/> class. /// </summary> /// <param name="settingsView">Settings view.</param> public SettingsLagacyTableSource(Shared.sv.SettingsView settingsView) : base(settingsView) { }
public SettingsViewLayoutManager(Context context, Shared.sv.SettingsView settingsView) : base(context) //, 1, Vertical, false) { _Context = context ?? throw new NullReferenceException(nameof(context)); _SettingsView = settingsView ?? throw new NullReferenceException(nameof(settingsView)); }