Пример #1
0
 /// <inheritdoc/>
 public virtual void GetChildObjects(ObjectCollection list)
 {
     foreach (ReportComponentBase obj in objects)
     {
         list.Add(obj);
     }
     if (!IsRunning)
     {
         list.Add(child);
     }
 }
Пример #2
0
 /// <inheritdoc/>
 public override void GetChildObjects(ObjectCollection list)
 {
     base.GetChildObjects(list);
     if (!IsRunning)
     {
         list.Add(FHeader);
         list.Add(FNestedGroup);
         list.Add(FData);
         list.Add(FGroupFooter);
         list.Add(FFooter);
     }
 }
Пример #3
0
 /// <inheritdoc/>
 public override void GetChildObjects(ObjectCollection list)
 {
     base.GetChildObjects(list);
     if (!IsRunning)
     {
         list.Add(header);
         list.Add(nestedGroup);
         list.Add(data);
         list.Add(groupFooter);
         list.Add(footer);
     }
 }
Пример #4
0
        /// <inheritdoc/>
        public override void GetChildObjects(ObjectCollection list)
        {
            base.GetChildObjects(list);
            if (IsRunning)
            {
                return;
            }

            list.Add(header);
            foreach (BandBase band in bands)
            {
                list.Add(band);
            }
            list.Add(footer);
        }
Пример #5
0
 /// <inheritdoc/>
 public virtual void GetChildObjects(ObjectCollection list)
 {
     foreach (ReportComponentBase c in objects)
     {
         list.Add(c);
     }
 }
Пример #6
0
 /// <inheritdoc/>
 public override void HandleMouseUp(FRMouseEventArgs e)
 {
     if (e.Mode == WorkspaceMode2.SelectionRect)
     {
         ObjectCollection selectedList = new ObjectCollection();
         // find objects inside the selection rect
         for (int i = 0; i < Report.Designer.Objects.Count; i++)
         {
             Base c = Report.Designer.Objects[i];
             if (c is ComponentBase && !(c is BandBase))
             {
                 e.Handled = false;
                 (c as ComponentBase).HandleMouseUp(e);
                 // object is inside
                 if (e.Handled)
                 {
                     selectedList.Add(c);
                 }
             }
         }
         if (selectedList.Count > 0)
         {
             selectedList.CopyTo(Report.Designer.SelectedObjects);
         }
     }
     FixHeight();
 }
Пример #7
0
 private void EnumObjects(Base c, ObjectCollection list)
 {
     if (c != this)
     {
         list.Add(c);
     }
     foreach (Base obj in c.ChildObjects)
     {
         EnumObjects(obj, list);
     }
 }
Пример #8
0
 /// <inheritdoc/>
 public virtual void GetChildObjects(ObjectCollection list)
 {
     if (TitleBeforeHeader)
     {
         list.Add(reportTitle);
         list.Add(pageHeader);
     }
     else
     {
         list.Add(pageHeader);
         list.Add(reportTitle);
     }
     list.Add(columnHeader);
     foreach (BandBase band in bands)
     {
         list.Add(band);
     }
     list.Add(reportSummary);
     list.Add(columnFooter);
     list.Add(pageFooter);
     list.Add(overlay);
 }
Пример #9
0
 private void EnumAllConvectedObjects(object sender, Base c, ObjectCollection list, int convertValue)
 {
     if (c != this)
     {
         if (c.IsHaveToConvert(sender))
         {
             if (convertValue < 10)
             {
                 foreach (Base b in c.GetConvertedObjects())
                 {
                     EnumAllConvectedObjects(sender, b, list, convertValue + 1);
                 }
                 return;
             }
         }
         list.Add(c);
     }
     foreach (Base obj in c.ChildObjects)
     {
         EnumAllConvectedObjects(sender, obj, list, convertValue);
     }
 }