Ejemplo n.º 1
0
 internal void Remove(DataInstanceInfo instance)
 {
     if (instance.NextInstance != null)
     {
         instance.NextInstance.PrevInstance = instance.PrevInstance;
     }
     else
     {
         Global.Tracer.Assert(instance == m_currentInstance, "(instance == m_currentInstance)");
         m_currentInstance = instance.PrevInstance;
     }
     if (instance.PrevInstance != null)
     {
         instance.PrevInstance.NextInstance = instance.NextInstance;
         return;
     }
     Global.Tracer.Assert(instance == m_firstInstance, "(instance == m_firstInstance)");
     m_firstInstance = instance.NextInstance;
 }
Ejemplo n.º 2
0
        internal void FinishReadingRows()
        {
            if (m_filterInfo == null)
            {
                return;
            }
            FilterInfo filterInfo = m_filterInfo;

            m_filterInfo       = null;
            m_startFilterIndex = m_currentSpecialFilterIndex + 1;
            bool flag = m_startFilterIndex >= m_filters.Count;

            TrimInstanceSet(filterInfo);
            for (DataInstanceInfo dataInstanceInfo = filterInfo.FirstInstance; dataInstanceInfo != null; dataInstanceInfo = dataInstanceInfo.NextInstance)
            {
                object dataInstance = dataInstanceInfo.DataInstance;
                if (FilterTypes.GroupFilter == m_filterType)
                {
                    ReportProcessing.RuntimeGroupLeafObj runtimeGroupLeafObj = (ReportProcessing.RuntimeGroupLeafObj)dataInstance;
                    runtimeGroupLeafObj.SetupEnvironment();
                    if (flag || PassFilters(dataInstance))
                    {
                        runtimeGroupLeafObj.PostFilterNextRow();
                    }
                    else
                    {
                        runtimeGroupLeafObj.FailFilter();
                    }
                }
                else
                {
                    FieldImpl[] fields = (FieldImpl[])dataInstance;
                    m_processingContext.ReportObjectModel.FieldsImpl.SetFields(fields);
                    if (flag || PassFilters(dataInstance))
                    {
                        m_owner.PostFilterNextRow();
                    }
                }
            }
            filterInfo = null;
            FinishReadingRows();
        }
Ejemplo n.º 3
0
 public void Remove(DataInstanceInfo instance)
 {
     if (instance.NextInstance != null)
     {
         instance.NextInstance.PrevInstance = instance.PrevInstance;
     }
     else
     {
         Global.Tracer.Assert(instance == this.m_currentInstance, "(instance == m_currentInstance)");
         this.m_currentInstance = instance.PrevInstance;
     }
     if (instance.PrevInstance != null)
     {
         instance.PrevInstance.NextInstance = instance.NextInstance;
     }
     else
     {
         Global.Tracer.Assert(instance == this.m_firstInstance, "(instance == m_firstInstance)");
         this.m_firstInstance = instance.NextInstance;
     }
 }
Ejemplo n.º 4
0
            public bool Add(object key, object dataInstance)
            {
                DataInstanceInfo dataInstanceInfo = new DataInstanceInfo();

                dataInstanceInfo.DataInstance = dataInstance;
                bool flag = this.m_dataInstances.Add(key, dataInstanceInfo, this);

                if (flag)
                {
                    if (this.m_firstInstance == null)
                    {
                        this.m_firstInstance = dataInstanceInfo;
                    }
                    if (this.m_currentInstance != null)
                    {
                        this.m_currentInstance.NextInstance = dataInstanceInfo;
                    }
                    dataInstanceInfo.PrevInstance = this.m_currentInstance;
                    dataInstanceInfo.NextInstance = null;
                    this.m_currentInstance        = dataInstanceInfo;
                }
                return(flag);
            }
Ejemplo n.º 5
0
            internal bool Add(object key, object dataInstance)
            {
                DataInstanceInfo dataInstanceInfo = new DataInstanceInfo();

                dataInstanceInfo.DataInstance = dataInstance;
                bool num = m_dataInstances.Add(key, dataInstanceInfo, this);

                if (num)
                {
                    if (m_firstInstance == null)
                    {
                        m_firstInstance = dataInstanceInfo;
                    }
                    if (m_currentInstance != null)
                    {
                        m_currentInstance.NextInstance = dataInstanceInfo;
                    }
                    dataInstanceInfo.PrevInstance = m_currentInstance;
                    dataInstanceInfo.NextInstance = null;
                    m_currentInstance             = dataInstanceInfo;
                }
                return(num);
            }
Ejemplo n.º 6
0
 public void RemoveAll()
 {
     this.m_firstInstance   = null;
     this.m_currentInstance = null;
 }
Ejemplo n.º 7
0
 internal void RemoveAll()
 {
     m_firstInstance   = null;
     m_currentInstance = null;
 }