Last change
on this file since 3566 was
3566,
checked in by mkommend, 14 years ago
|
removed ctors with contents in all views (ticket #972)
|
File size:
1.2 KB
|
Rev | Line | |
---|
[3442] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.ComponentModel;
|
---|
| 4 | using System.Drawing;
|
---|
| 5 | using System.Data;
|
---|
| 6 | using System.Linq;
|
---|
| 7 | using System.Text;
|
---|
[3294] | 8 | using System.Windows.Forms;
|
---|
| 9 | using HeuristicLab.Core.Views;
|
---|
| 10 | using HeuristicLab.MainForm;
|
---|
| 11 |
|
---|
[3442] | 12 | namespace HeuristicLab.Problems.DataAnalysis.Views {
|
---|
| 13 | [View("Data-Analysis Problem View")]
|
---|
[3545] | 14 | [Content(typeof(DataAnalysisProblemData), true)]
|
---|
| 15 | public partial class DataAnalysisProblemDataView : ParameterizedNamedItemView {
|
---|
[3294] | 16 | private OpenFileDialog openFileDialog;
|
---|
[3373] | 17 | public new DataAnalysisProblemData Content {
|
---|
| 18 | get { return (DataAnalysisProblemData)base.Content; }
|
---|
[3442] | 19 | set {
|
---|
| 20 | base.Content = value;
|
---|
| 21 | }
|
---|
[3294] | 22 | }
|
---|
| 23 |
|
---|
[3373] | 24 | public DataAnalysisProblemDataView() {
|
---|
[3294] | 25 | InitializeComponent();
|
---|
| 26 | }
|
---|
| 27 |
|
---|
[3442] | 28 | private void importButton_Click(object sender, EventArgs e) {
|
---|
[3294] | 29 | if (openFileDialog == null) openFileDialog = new OpenFileDialog();
|
---|
| 30 |
|
---|
| 31 | if (openFileDialog.ShowDialog(this) == DialogResult.OK) {
|
---|
| 32 | try {
|
---|
| 33 | Content.ImportFromFile(openFileDialog.FileName);
|
---|
| 34 | }
|
---|
| 35 | catch (Exception ex) {
|
---|
| 36 | Auxiliary.ShowErrorMessageBox(ex);
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.