public void Validate(object component, ReportExpression <T> value)
 {
     if (!value.IsExpression)
     {
         Validate(component, value.Value);
     }
 }
 public override void Initialize()
 {
     base.Initialize();
     StartColor  = new ReportExpression <ReportColor>("Green", CultureInfo.InvariantCulture);
     MiddleColor = new ReportExpression <ReportColor>("Yellow", CultureInfo.InvariantCulture);
     EndColor    = new ReportExpression <ReportColor>("Red", CultureInfo.InvariantCulture);
 }
Ejemplo n.º 3
0
        private bool CommandTextEquivalent(ReportExpression first, ReportExpression second)
        {
            string a = FixCommandText(first.ToString());
            string b = FixCommandText(second.ToString());

            return(a == b);
        }
Ejemplo n.º 4
0
 public override void Initialize()
 {
     base.Initialize();
     Layout              = MapLegendLayouts.AutoTable;
     MinFontSize         = new ReportExpression <ReportSize>("7pt", CultureInfo.InvariantCulture);
     InterlacedRowsColor = new ReportExpression <ReportColor>("LightGray", CultureInfo.InvariantCulture);
     TextWrapThreshold   = 25;
 }
Ejemplo n.º 5
0
 public override void Initialize()
 {
     base.Initialize();
     VisibilityMode = MapVisibilityModes.Visible;
     MinimumZoom    = 50.0;
     MaximumZoom    = 200.0;
     Transparency   = 0.0;
 }
Ejemplo n.º 6
0
 public override void Initialize()
 {
     base.Initialize();
     GaugePointers   = new RdlCollection <GaugePointer>();
     ScaleRanges     = new RdlCollection <ScaleRange>();
     CustomLabels    = new RdlCollection <CustomLabel>();
     LogarithmicBase = 10.0;
     Multiplier      = 1.0;
     Width           = 5.0;
 }
Ejemplo n.º 7
0
 public override void Initialize()
 {
     base.Initialize();
     MapCoordinateSystem      = MapCoordinateSystems.Planar;
     MapProjection            = MapProjections.Equirectangular;
     MaximumZoom              = 20000.0;
     MinimumZoom              = 20.0;
     SimplificationResolution = 0.0;
     ContentMargin            = new ReportExpression <ReportSize>("10pt", CultureInfo.InvariantCulture);
 }
Ejemplo n.º 8
0
 public override void Initialize()
 {
     base.Initialize();
     ChartLegendColumns = new RdlCollection <ChartLegendColumn>();
     Position           = ChartPositions.RightTop;
     Layout             = ChartLegendLayouts.AutoTable;
     ColumnSpacing      = 50;
     MaxAutoSize        = 50;
     TextWrapThreshold  = 25;
 }
Ejemplo n.º 9
0
 public override void Initialize()
 {
     base.Initialize();
     TickMarkLength      = new ReportExpression <ReportSize>("2.25pt", CultureInfo.InvariantCulture);
     ColorBarBorderColor = new ReportExpression <ReportColor>("Black", CultureInfo.InvariantCulture);
     LabelInterval       = 1;
     LabelFormat         = "#,##0.##";
     LabelPlacement      = MapLabelPlacements.Alternate;
     LabelBehavior       = MapLabelBehaviors.Auto;
     RangeGapColor       = new ReportExpression <ReportColor>("White", CultureInfo.InvariantCulture);
 }
Ejemplo n.º 10
0
 public override bool Equals(object value)
 {
     if (value is ReportExpression)
     {
         ReportExpression reportExpression = (ReportExpression)value;
         if (Value == reportExpression.Value && IsExpression == reportExpression.IsExpression)
         {
             return(DataType == reportExpression.DataType);
         }
         return(false);
     }
     if (value is string)
     {
         return(Equals(new ReportExpression(((string)value) ?? "")));
     }
     if (value == null)
     {
         return(Value == "");
     }
     return(false);
 }
Ejemplo n.º 11
0
 public override void Initialize()
 {
     base.Initialize();
     TitleSeparator      = MapLegendTitleSeparators.None;
     TitleSeparatorColor = new ReportExpression <ReportColor>("Gray", CultureInfo.InvariantCulture);
 }
Ejemplo n.º 12
0
 public override void Initialize()
 {
     base.Initialize();
     SeriesSymbolWidth  = 200;
     SeriesSymbolHeight = 70;
 }
Ejemplo n.º 13
0
 public override void Initialize()
 {
     base.Initialize();
     Color = Constants.DefaultEmptyColor;
     Style = BorderStyles.Solid;
 }
Ejemplo n.º 14
0
 public override void Initialize()
 {
     base.Initialize();
     Color = Constants.DefaultEmptyColor;
 }
Ejemplo n.º 15
0
 public override void Initialize()
 {
     base.Initialize();
     Width          = new ReportExpression <ReportSize>("3.75pt", CultureInfo.InvariantCulture);
     LabelPlacement = MapLineLabelPlacements.Above;
 }
Ejemplo n.º 16
0
 public override void Initialize()
 {
     base.Initialize();
     ScaleColor       = new ReportExpression <ReportColor>("White", CultureInfo.InvariantCulture);
     ScaleBorderColor = new ReportExpression <ReportColor>("DarkGray", CultureInfo.InvariantCulture);
 }
Ejemplo n.º 17
0
 public override void Initialize()
 {
     base.Initialize();
     Size           = new ReportExpression <ReportSize>("5.25pt", CultureInfo.InvariantCulture);
     LabelPlacement = MapPointLabelPlacements.Bottom;
 }
Ejemplo n.º 18
0
 internal static void GetEmbeddedImgDependencies(Report report, ICollection <ReportObject> dependencies, SourceType imageSource, ReportExpression imageValue)
 {
     if (report != null && dependencies != null && !string.IsNullOrEmpty(imageValue.Expression) && imageSource == SourceType.Embedded && !imageValue.IsExpression)
     {
         EmbeddedImage embeddedImageByName = report.GetEmbeddedImageByName(imageValue.Expression);
         if (embeddedImageByName != null && !dependencies.Contains(embeddedImageByName))
         {
             dependencies.Add(embeddedImageByName);
         }
     }
 }
Ejemplo n.º 19
0
 public override void Initialize()
 {
     base.Initialize();
     ResizeMode = MapResizeModes.AutoFit;
 }