Changeset 13114 for branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/ChartControl.cs
- Timestamp:
- 11/04/15 13:50:43 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/ChartControl.cs
r13106 r13114 37 37 private bool SuppressRender { get; set; } 38 38 39 public PictureBox PictureBox { get { return pictureBox; } }40 41 public Color BackgroundColor {42 get { return chart != null ? chart.BackgroundColor : Color.Empty; }43 set {44 if (chart == null || chart.BackgroundColor == value) return;45 chart.BackgroundColor = value;46 }47 }48 49 39 private IChart chart; 50 40 public IChart Chart { … … 112 102 SuppressRender = false; 113 103 if (Chart != null) GenerateImage(); 104 } 105 106 public void RefreshPicture() { 107 pictureBox.Refresh(); 108 } 109 110 public void UpdatePicture() { 111 pictureBox.Update(); 112 } 113 114 public Graphics CreatePictureGraphics() { 115 return pictureBox.CreateGraphics(); 114 116 } 115 117
Note: See TracChangeset
for help on using the changeset viewer.