Пример #1
0
        public void CopyStyle(GraphControl c)
        {
            BackColor = c.BackColor;
            ForeColor = c.ForeColor;
            AxisColor = c.AxisColor;
            ZeroColor = c.ZeroColor;
            BeginColor = c.BeginColor;

            labelVisible = c.labelVisible;
            boxVisible = c.boxVisible;

            leftTopMargin = c.leftTopMargin;
            rightBottomMargin = c.rightBottomMargin;

            minVisibleValue = c.minVisibleValue;
            maxVisibleValue = c.maxVisibleValue;

            verticalLines = c.verticalLines;
            verticalLabelFormat = c.verticalLabelFormat;

            startTime = c.startTime;

            Text = c.Text;
            titleFont = c.titleFont;
            titleColor = c.titleColor;
            titleDock = c.titleDock;

            visibleSamples = c.visibleSamples;

            showTooltip = c.showTooltip;

            timeScale = c.timeScale;
            timeFormat = c.timeFormat;
        }
Пример #2
0
            public Style(GraphControl c)
            {
                GraphBackColor = c.GraphBackColor.ToArgb();
                LineColor = c.LineColor.ToArgb();
                AxisColor = c.AxisColor.ToArgb();
                ZeroColor = c.ZeroColor.ToArgb();
                BeginColor = c.BeginColor.ToArgb();

                labelVisible = c.labelVisible;
                boxVisible = c.boxVisible;

                leftTopMargin = c.leftTopMargin;
                rightBottomMargin = c.rightBottomMargin;

                MinVisibleValue = c.MinVisibleValue;
                MaxVisibleValue = c.MaxVisibleValue;

                verticalLines = c.verticalLines;
                verticalLabelFormat = c.VerticalLabelFormat;

                startTime = c.startTime;

                title = c.Text;
                titleFontFamily = c.titleFont.FontFamily.Name;
                titleFontSize = c.titleFont.Size;
                titleColor = c.TitleColor.ToArgb();
                titleDock = c.titleDock;

                visibleSamples = c.visibleSamples;

                showTooltip = c.showTooltip;

                timeScale = c.timeScale;
                timeFormat = c.timeFormat;
            }