Exemplo n.º 1
0
            internal MyCursorHelper(CursorTreeAdapter _enclosing, android.database.Cursor cursor
                                    )
            {
                this._enclosing = _enclosing;
                bool cursorPresent = cursor != null;

                this.mCursor          = cursor;
                this.mDataValid       = cursorPresent;
                this.mRowIDColumn     = cursorPresent ? cursor.getColumnIndex("_id") : -1;
                this.mContentObserver = new android.widget.CursorTreeAdapter.MyCursorHelper.MyContentObserver
                                            (this);
                this.mDataSetObserver = new android.widget.CursorTreeAdapter.MyCursorHelper.MyDataSetObserver
                                            (this);
                if (cursorPresent)
                {
                    cursor.registerContentObserver(this.mContentObserver);
                    cursor.registerDataSetObserver(this.mDataSetObserver);
                }
            }
Exemplo n.º 2
0
			internal MyCursorHelper(CursorTreeAdapter _enclosing, android.database.Cursor cursor
				)
			{
				this._enclosing = _enclosing;
				bool cursorPresent = cursor != null;
				this.mCursor = cursor;
				this.mDataValid = cursorPresent;
				this.mRowIDColumn = cursorPresent ? cursor.getColumnIndex("_id") : -1;
				this.mContentObserver = new android.widget.CursorTreeAdapter.MyCursorHelper.MyContentObserver
					(this);
				this.mDataSetObserver = new android.widget.CursorTreeAdapter.MyCursorHelper.MyDataSetObserver
					(this);
				if (cursorPresent)
				{
					cursor.registerContentObserver(this.mContentObserver);
					cursor.registerDataSetObserver(this.mDataSetObserver);
				}
			}