Пример #1
0
        private void TakeScreenshot(object sender, RoutedEventArgs e)
        {
            var dialog = new SaveFileDialog {
                Title = "Save screenshot", Filter = "Image (*.jpg)|*.jpg", AddExtension = true, CheckPathExists = true
            };

            if (dialog.ShowDialog() == true)
            {
                StockChart.ExportToFile(dialog.FileName, ExportType.Jpeg, false);
            }
        }
Пример #2
0
        public HomePageForm()
        {
            InitializeComponent();

            //HomePage.AccountSummaryChart accountChart = new HomePage.AccountSummaryChart();
            //accountChart.Size = new Size(this.Width - 20, this.Height - 20);
            //this.Controls.Add(accountChart);

            StockChart plot = new StockChart();

            plot.SetChartData(GenerateExampleData());
            this.Controls.Add(plot.Canvas);
        }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChartBuilder{T}"/> class.
 /// </summary>
 /// <param name="component">The component.</param>
 public StockChartBuilder(StockChart <T> component)
     : base(component)
 {
 }