Esempio n. 1
0
 //------------------------------------------------------
 private void AppliqueGridStyle(CChartGridStyle f, Grid ms)
 {
     ms.Enabled            = f.Enabled;
     ms.Interval           = f.Interval;
     ms.IntervalOffset     = f.IntervalOffset;
     ms.IntervalOffsetType = CConvertisseurChartEnumToMSEnum.GetMSDateTimeIntervalType(f.IntervalOffsetType);
     ms.IntervalType       = CConvertisseurChartEnumToMSEnum.GetMSDateTimeIntervalType(f.IntervalType);
     ms.LineColor          = f.LineColor;
     ms.LineDashStyle      = CConvertisseurChartEnumToMSEnum.GetMSChartDashStyle(f.LineDashStyle);
     ms.LineWidth          = f.LineWidth;
 }
Esempio n. 2
0
 //------------------------------------------------------
 private void AppliqueCursor(CAxisCursor f, System.Windows.Forms.DataVisualization.Charting.Cursor ms)
 {
     ms.AutoScroll             = f.AutoScroll;
     ms.AxisType               = CConvertisseurChartEnumToMSEnum.GetMSAxisType(f.AxisType);
     ms.Interval               = f.Interval;
     ms.IntervalOffset         = f.IntervalOffset;
     ms.IntervalOffsetType     = CConvertisseurChartEnumToMSEnum.GetMSDateTimeIntervalType(f.IntervalOffsetType);
     ms.IntervalType           = CConvertisseurChartEnumToMSEnum.GetMSDateTimeIntervalType(f.IntervalType);
     ms.IsUserEnabled          = f.IsUserEnabled;
     ms.IsUserSelectionEnabled = ModeSouris == EModeMouseChart.Loupe;
     ms.LineColor              = f.LineColor;
     ms.LineDashStyle          = CConvertisseurChartEnumToMSEnum.GetMSChartDashStyle(f.LineDashStyle);
     ms.LineWidth              = f.LineWith;
     ms.SelectionColor         = f.SelectionColor;
 }
Esempio n. 3
0
 //------------------------------------------------------
 private void AppliqueLabelStyle(CAxisLabelStyle f, LabelStyle ms)
 {
     ms.Angle   = f.Angle;
     ms.Enabled = f.Enabled;
     if (f.Font != null)
     {
         ms.Font = f.Font;
     }
     ms.ForeColor          = f.ForeColor;
     ms.Interval           = f.Interval;
     ms.IntervalOffset     = f.IntervalOffset;
     ms.IntervalOffsetType = CConvertisseurChartEnumToMSEnum.GetMSDateTimeIntervalType(f.IntervalOffsetType);
     ms.IntervalType       = CConvertisseurChartEnumToMSEnum.GetMSDateTimeIntervalType(f.IntervalType);
     ms.IsEndLabelVisible  = f.IsEndLabelVisible;
     ms.IsStaggered        = f.IsStaggered;
     ms.TruncatedLabels    = f.TruncatedLabels;
     ms.Format             = f.Format;
 }
Esempio n. 4
0
        //------------------------------------------------------
        private void AppliqueAxe(CChartAxis f, Axis ms)
        {
            CChartAxisStyle sf = f.Style;

            ms.ArrowStyle              = CConvertisseurChartEnumToMSEnum.GetMSAxisArrowStyle(sf.ArrowStyle);
            ms.Enabled                 = CConvertisseurChartEnumToMSEnum.GetMSAxisEnabled(f.Enabled);
            ms.InterlacedColor         = sf.InterlacedColor;
            ms.Interval                = f.Interval;
            ms.IntervalAutoMode        = CConvertisseurChartEnumToMSEnum.GetMSIntervalAutoMode(f.IntervalAutoMode);
            ms.IntervalOffset          = f.IntervalOffset;
            ms.IntervalOffsetType      = CConvertisseurChartEnumToMSEnum.GetMSDateTimeIntervalType(f.IntervalOffsetType);
            ms.IntervalType            = CConvertisseurChartEnumToMSEnum.GetMSDateTimeIntervalType(f.IntervalType);
            ms.IsInterlaced            = sf.IsInterlaced;
            ms.IsLabelAutoFit          = f.IsLabelAutoFit;
            ms.IsLogarithmic           = f.IsLogarithmic;
            ms.IsMarginVisible         = f.IsMarginVisible;
            ms.IsMarksNextToAxis       = sf.IsMarksNextToAxis;
            ms.IsReversed              = f.IsReversed;
            ms.IsStartedFromZero       = f.IsStartedFromZero;
            ms.LabelAutoFitMaxFontSize = f.LabelAutoFitMaxFontSize;
            ms.LabelAutoFitMinFontSize = f.LabelAutoFitMinFontSize;
            ms.LabelAutoFitStyle       = CConvertisseurChartEnumToMSEnum.GetMSLabelAutoFitStyles(f.LabelAutoFitStyle);
            AppliqueLabelStyle(f.LabelStyle, ms.LabelStyle);
            ms.LineColor     = sf.LineColor;
            ms.LineDashStyle = CConvertisseurChartEnumToMSEnum.GetMSChartDashStyle(sf.LineDashStyle);
            ms.LineWidth     = sf.LineWidth;
            ms.LogarithmBase = f.LogarithmBase;
            AppliqueGridStyle(f.MajorGridStyle, ms.MajorGrid);
            AppliqueTickMarkerStyle(f.MajorTickMark, ms.MajorTickMark);
            AppliqueGridStyle(f.MinorGridStyle, ms.MinorGrid);
            AppliqueTickMarkerStyle(f.MinorTickMark, ms.MinorTickMark);
            ms.TextOrientation = CConvertisseurChartEnumToMSEnum.GetMSTextOrientation(f.TitleOrientation);
            ms.Title           = f.Title;
            ms.TitleAlignment  = CConvertisseurChartEnumToMSEnum.GetMSStringAlignment(f.TitleAlignment);
            if (f.TitleFont != null)
            {
                ms.TitleFont = f.TitleFont;
            }
            ms.TitleForeColor = f.TitleForeColor;
            AppliqueScrollBar(f.ScrollBar, ms.ScrollBar);
        }