コード例 #1
0
 /// <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;
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        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;
        }
コード例 #4
0
 /// <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;
 }