Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportComponentBase"/> class with default settings.
 /// </summary>
 public ReportComponentBase()
 {
     border             = new Border();
     fill               = new SolidFill();
     hyperlink          = new Hyperlink(this);
     bookmark           = "";
     exportable         = true;
     flagUseFill        = true;
     flagUseBorder      = true;
     flagPreviewVisible = true;
     flagSerializeStyle = true;
     shiftMode          = ShiftMode.Always;
     style              = "";
     evenStyle          = "";
     hoverStyle         = "";
     printOn            = PrintOn.FirstPage | PrintOn.LastPage | PrintOn.OddPages | PrintOn.EvenPages | PrintOn.RepeatedBand | PrintOn.SinglePage;
     beforePrintEvent   = "";
     afterPrintEvent    = "";
     afterDataEvent     = "";
     clickEvent         = "";
     cursor             = Cursors.Default;
     mouseMoveEvent     = "";
     mouseUpEvent       = "";
     mouseDownEvent     = "";
     mouseEnterEvent    = "";
     mouseLeaveEvent    = "";
     backlight          = false;
     SetFlags(Flags.CanGroup, true);
     if (BaseName.EndsWith("Object"))
     {
         BaseName = ClassName.Substring(0, ClassName.Length - 6);
     }
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <b>DialogComponentBase</b> class with default settings.
 /// </summary>
 public DialogComponentBase()
 {
     if (BaseName.EndsWith("Component"))
     {
         BaseName = ClassName.Remove(ClassName.IndexOf("Component"));
     }
     if (BaseName.EndsWith("Control"))
     {
         BaseName = ClassName.Remove(ClassName.IndexOf("Control"));
     }
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BandBase"/> class with default settings.
 /// </summary>
 public BandBase()
 {
     objects           = new ReportComponentCollection(this);
     guides            = new FloatCollection();
     beforeLayoutEvent = "";
     afterLayoutEvent  = "";
     outlineExpression = "";
     CanBreak          = false;
     ShiftMode         = ShiftMode.Never;
     if (BaseName.EndsWith("Band"))
     {
         BaseName = ClassName.Remove(ClassName.IndexOf("Band"));
     }
     SetFlags(Flags.CanMove | Flags.CanChangeOrder | Flags.CanChangeParent | Flags.CanCopy | Flags.CanGroup, false);
     FlagUseStartNewPage = true;
     FlagCheckFreeSpace  = true;
 }