Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14369 for trunk


Ignore:
Timestamp:
11/03/16 12:47:24 (8 years ago)
Author:
pfleck
Message:

#2694: Created the ExportDialog lazily.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs

    r14185 r14369  
    2828namespace HeuristicLab.Visualization.ChartControlsExtensions {
    2929  public partial class EnhancedChart : Chart {
     30
    3031    private ImageExportDialog exportDialog;
     32
     33    private ImageExportDialog ExportDialog {
     34      get { return exportDialog ?? (exportDialog = new ImageExportDialog(this)); }
     35    }
    3136
    3237    public EnhancedChart()
    3338      : base() {
    3439      InitializeComponent();
    35       exportDialog = new ImageExportDialog(this);
    3640      EnableDoubleClickResetsZoom = true;
    3741      EnableMiddleClickPanning = true;
     
    166170
    167171    private void exportToolStripMenuItem_Click(object sender, EventArgs e) {
    168       exportDialog.ShowDialog();
     172      ExportDialog.ShowDialog();
    169173    }
    170174
Note: See TracChangeset for help on using the changeset viewer.