1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel;
|
---|
4 | using System.Data;
|
---|
5 | using System.Drawing;
|
---|
6 | using System.Text;
|
---|
7 | using System.Windows.Forms;
|
---|
8 |
|
---|
9 | namespace HeuristicLab.DataImporter.Backend.Hl2ImporterFormat {
|
---|
10 | public partial class Hl2ExporterView : UserControl {
|
---|
11 | private SaveFileDialog saveFileDialog;
|
---|
12 | public Hl2ExporterView() {
|
---|
13 | InitializeComponent();
|
---|
14 | this.saveFileDialog = new SaveFileDialog();
|
---|
15 | saveFileDialog.AddExtension = true;
|
---|
16 | saveFileDialog.RestoreDirectory = true;
|
---|
17 | saveFileDialog.DefaultExt = "hl2";
|
---|
18 | saveFileDialog.Filter = "HL2-Importer file (*.hl2)|*.hl2|All files (*.*)|*.*";
|
---|
19 | }
|
---|
20 |
|
---|
21 | public string FileName {
|
---|
22 | get { return txtFileName.Text; }
|
---|
23 | }
|
---|
24 |
|
---|
25 | public string ProblemName {
|
---|
26 | get { return txtProblemName.Text; }
|
---|
27 | }
|
---|
28 |
|
---|
29 | public string TargetVariable {
|
---|
30 | get { return txtTargetVariable.Text; }
|
---|
31 | }
|
---|
32 |
|
---|
33 | public string NonInputVariables {
|
---|
34 | get { return txtNonInputVariables.Text; }
|
---|
35 | }
|
---|
36 |
|
---|
37 | public string MinimumTimeOffset {
|
---|
38 | get { return txtMinimumTimeOffset.Text; }
|
---|
39 | }
|
---|
40 |
|
---|
41 | public string MaximumTimeOffset {
|
---|
42 | get { return txtMaximumTimeOffset.Text; }
|
---|
43 | }
|
---|
44 |
|
---|
45 | public string MaximumTreeHeight {
|
---|
46 | get { return txtMaximumTreeHeight.Text; }
|
---|
47 | }
|
---|
48 |
|
---|
49 | public string MaximumTreeSize {
|
---|
50 | get { return txtMaximumTreeSize.Text; }
|
---|
51 | }
|
---|
52 |
|
---|
53 | public string TrainingStart {
|
---|
54 | get { return txtTrainingStart.Text; }
|
---|
55 | }
|
---|
56 |
|
---|
57 | public string TrainingEnd {
|
---|
58 | get { return txtTrainingEnd.Text; }
|
---|
59 | }
|
---|
60 |
|
---|
61 | public string ValidationStart {
|
---|
62 | get { return txtValidationStart.Text; }
|
---|
63 | }
|
---|
64 |
|
---|
65 | public string ValidationEnd {
|
---|
66 | get { return txtValidationEnd.Text; }
|
---|
67 | }
|
---|
68 |
|
---|
69 | public string TestStart {
|
---|
70 | get { return txtTestStart.Text; }
|
---|
71 | }
|
---|
72 |
|
---|
73 | public string TestEnd {
|
---|
74 | get { return txtTestEnd.Text; }
|
---|
75 | }
|
---|
76 |
|
---|
77 | private void btnBrowse_Click(object sender, EventArgs e) {
|
---|
78 | if (saveFileDialog.ShowDialog() == DialogResult.OK) {
|
---|
79 | this.txtFileName.Text = saveFileDialog.FileName;
|
---|
80 | }
|
---|
81 | }
|
---|
82 |
|
---|
83 | }
|
---|
84 | }
|
---|