Free cookie consent management tool by TermsFeed Policy Generator

source: branches/Benchmark Generator/HeuristicLab.BenchmarkGenerator/3.3/BenchmarkGeneratorForm.cs @ 18060

Last change on this file since 18060 was 10088, checked in by bburlacu, 11 years ago

#2083: Removed old project and rewritten the Benchmark Generator as a HeuristicLab plugin. Added new functions and visualization capability.

File size: 1.1 KB
Line 
1using System;
2using System.Drawing;
3using HeuristicLab.MainForm.WindowsForms;
4
5namespace HeuristicLab.BenchmarkGenerator {
6  public partial class BenchmarkGeneratorForm : MainForm.WindowsForms.MainForm {
7    public BenchmarkGeneratorForm() {
8      InitializeComponent();
9      formulaTextBox.Font = new Font(FontFamily.GenericMonospace, 10);
10    }
11
12    public BenchmarkGeneratorForm(Type userInterfaceType)
13      : base(userInterfaceType) {
14      InitializeComponent();
15      formulaTextBox.Font = new Font(FontFamily.GenericMonospace, 10);
16    }
17
18    public string FormulaText { get { return formulaTextBox.Text; } }
19    public int Samples {
20      get { return 0; }
21    }
22    public ViewHost ViewHost { get { return viewHost1; } }
23
24    public event EventHandler GenerateButtonClicked;
25    private void OnGenerateButtonClicked(object sender, EventArgs e) {
26      var clicked = GenerateButtonClicked;
27      if (clicked != null)
28        clicked(sender, e);
29    }
30
31    private void generateButton_Click(object sender, EventArgs e) {
32      OnGenerateButtonClicked(this, EventArgs.Empty);
33    }
34  }
35}
Note: See TracBrowser for help on using the repository browser.