Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
 /// <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);
         }
     };
 }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
 public SVItemDecoration(Drawable drawable, Shared.sv.SettingsView settingsView)
 {
     _Drawable     = drawable;
     _SettingsView = settingsView;
 }
Ejemplo n.º 7
0
 /// <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)
 {
 }
Ejemplo n.º 8
0
 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));
 }