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);
 }
Example #3
0
        private bool CommandTextEquivalent(ReportExpression first, ReportExpression second)
        {
            string a = FixCommandText(first.ToString());
            string b = FixCommandText(second.ToString());

            return(a == b);
        }
Example #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;
 }
Example #5
0
 public override void Initialize()
 {
     base.Initialize();
     VisibilityMode = MapVisibilityModes.Visible;
     MinimumZoom    = 50.0;
     MaximumZoom    = 200.0;
     Transparency   = 0.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;
 }
 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);
 }
 public override void Initialize()
 {
     base.Initialize();
     ChartLegendColumns = new RdlCollection <ChartLegendColumn>();
     Position           = ChartPositions.RightTop;
     Layout             = ChartLegendLayouts.AutoTable;
     ColumnSpacing      = 50;
     MaxAutoSize        = 50;
     TextWrapThreshold  = 25;
 }
 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);
 }
Example #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);
 }
Example #11
0
 public override void Initialize()
 {
     base.Initialize();
     TitleSeparator      = MapLegendTitleSeparators.None;
     TitleSeparatorColor = new ReportExpression <ReportColor>("Gray", CultureInfo.InvariantCulture);
 }
Example #12
0
 public override void Initialize()
 {
     base.Initialize();
     SeriesSymbolWidth  = 200;
     SeriesSymbolHeight = 70;
 }
 public override void Initialize()
 {
     base.Initialize();
     Color = Constants.DefaultEmptyColor;
     Style = BorderStyles.Solid;
 }
 public override void Initialize()
 {
     base.Initialize();
     Color = Constants.DefaultEmptyColor;
 }
Example #15
0
 public override void Initialize()
 {
     base.Initialize();
     Width          = new ReportExpression <ReportSize>("3.75pt", CultureInfo.InvariantCulture);
     LabelPlacement = MapLineLabelPlacements.Above;
 }
Example #16
0
 public override void Initialize()
 {
     base.Initialize();
     ScaleColor       = new ReportExpression <ReportColor>("White", CultureInfo.InvariantCulture);
     ScaleBorderColor = new ReportExpression <ReportColor>("DarkGray", CultureInfo.InvariantCulture);
 }
Example #17
0
 public override void Initialize()
 {
     base.Initialize();
     Size           = new ReportExpression <ReportSize>("5.25pt", CultureInfo.InvariantCulture);
     LabelPlacement = MapPointLabelPlacements.Bottom;
 }
Example #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);
         }
     }
 }
 public override void Initialize()
 {
     base.Initialize();
     ResizeMode = MapResizeModes.AutoFit;
 }