- Timestamp:
- 12/23/10 00:29:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/OptimizerMainForm.cs
r4068 r5166 22 22 using System; 23 23 using System.ComponentModel; 24 using System.IO;25 24 using System.Linq; 26 25 using System.Reflection; … … 88 87 89 88 WindowState = Properties.Settings.Default.ShowMaximized ? FormWindowState.Maximized : FormWindowState.Normal; 90 }91 92 private static string CHARTCONTROLASSEMBLY = "System.Windows.Forms.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35";93 private bool CheckChartControls() {94 try {95 Assembly chartControlsAssembly = Assembly.Load(CHARTCONTROLASSEMBLY);96 if (chartControlsAssembly != null)97 return true;98 }99 catch (FileNotFoundException) {100 }101 catch (FileLoadException) {102 }103 catch (BadImageFormatException) {104 }105 return false;106 }107 108 protected override void OnShown(EventArgs e) {109 base.OnShown(e);110 if (!CheckChartControls()) {111 ChartControlsWarning dlg = new ChartControlsWarning();112 dlg.ShowDialog(this);113 }114 89 } 115 90
Note: See TracChangeset
for help on using the changeset viewer.