private void bindCurveChartToEditor()
        {
            Chart = new CurveChart
            {
                OriginText = Captions.ChartFingerprintDataFrom("Test Chart Project", "Test Chart Simulation", DateTime.Now.ToIsoFormat()),
                Title      = "The Chart Title"
            };

            Chart.ChartSettings.BackColor = Color.White;
            ChartEditorPresenter.Edit(Chart);
        }
示例#2
0
        public static void SetOriginTextFor(this IChart chart, string projectName, string simulationName)
        {
            var localTime = DateTime.Now.ToLocalTime().ToIsoFormat();

            chart.OriginText = Captions.ChartFingerprintDataFrom(projectName, simulationName, localTime);
        }