Beispiel #1
0
        protected override DataSourceView GetView(string viewName)
        {
            if (null == _view)
            {
                RefreshContextInfo();

                _view = new SenseNetDataSourceView(this)
                {
                    Content         = this.Content,
                    MemberName      = this.MemberName,
                    FieldNames      = this.FieldNames,
                    QueryFilter     = this.QueryFilter,
                    QueryText       = this.Query,
                    ShowHidden      = this.ShowHidden,
                    Settings        = this.Settings,
                    FlattenResults  = this.FlattenResults,
                    DefaultOrdering = this.DefaultOrdering,
                    GroupBy         = this.GroupBy
                };

                _view.Selected += SnDataSourceViewSelected;
            }

            return(_view);
        }
Beispiel #2
0
 public void ResetView()
 {
     _view = null;
 }