/// <summary> /// Releases all resource used by the <see cref="DSoft.Datatypes.Grid.Shared.DSCellProcessor"/> object. /// </summary> /// <remarks>Call <see cref="Dispose"/> when you are finished using the /// <see cref="DSoft.Datatypes.Grid.Shared.DSCellProcessor"/>. The <see cref="Dispose"/> method leaves the /// <see cref="DSoft.Datatypes.Grid.Shared.DSCellProcessor"/> in an unusable state. After calling /// <see cref="Dispose"/>, you must release all references to the /// <see cref="DSoft.Datatypes.Grid.Shared.DSCellProcessor"/> so the garbage collector can reclaim the memory that the /// <see cref="DSoft.Datatypes.Grid.Shared.DSCellProcessor"/> was occupying.</remarks> public void Dispose() { mGridView = null; mRowView = null; mValue = null; mViewInvalidatedAction = null; }
/// <summary> /// Prepares the grid view. /// </summary> private void PrepareGridView() { //this.View.BackgroundColor = UIColor.Clear; var aGridView = new DSGridView(this); aGridView.LayoutParameters = new ViewGroup.LayoutParams(FrameLayout.LayoutParams.FillParent, FrameLayout.LayoutParams.FillParent); mGridView = aGridView; this.SetContentView(aGridView); }
private void PrepareGridView() { //this.View.BackgroundColor = UIColor.Clear; var aGridView = new DSGridView(this.Activity); aGridView.LayoutParameters = new ViewGroup.LayoutParams(FrameLayout.LayoutParams.FillParent, FrameLayout.LayoutParams.FillParent); //mGridView.AutoresizingMask = View.AutoresizingMask; //mGridView.ShowsHorizontalScrollIndicator = true; //mGridView.ShowsVerticalScrollIndicator = true; //mGridView.ShowSelection = ShowSelection; //mGridView.Bounces = mEnableBounce; aGridView.DataSource = DataSource; //mGridView.OnSingleCellTap += OnSingleCellTap; //mGridView.OnDoubleCellTap += OnDoubleCellTap; //this.View.AddSubview(mGridView); mGridView = aGridView; }
/// <summary> /// Releases all resource used by the <see cref="DSoft.Datatypes.Grid.Shared.DSRowProcessor"/> object. /// </summary> /// <remarks>Call <see cref="Dispose"/> when you are finished using the /// <see cref="DSoft.Datatypes.Grid.Shared.DSRowProcessor"/>. The <see cref="Dispose"/> method leaves the /// <see cref="DSoft.Datatypes.Grid.Shared.DSRowProcessor"/> in an unusable state. After calling /// <see cref="Dispose"/>, you must release all references to the /// <see cref="DSoft.Datatypes.Grid.Shared.DSRowProcessor"/> so the garbage collector can reclaim the memory that the /// <see cref="DSoft.Datatypes.Grid.Shared.DSRowProcessor"/> was occupying.</remarks> public void Dispose() { mGridView = null; mCells = null; mViewInvalidatedAction = null; }