Last change
on this file since 584 was
584,
checked in by abeham, 16 years ago
|
merged communication framework to trunk (ticket #279)
|
File size:
1.8 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel;
|
---|
4 | using System.Drawing;
|
---|
5 | using System.Data;
|
---|
6 | using System.Text;
|
---|
7 | using System.Windows.Forms;
|
---|
8 | using HeuristicLab.Core;
|
---|
9 | using HeuristicLab.Data;
|
---|
10 |
|
---|
11 | namespace HeuristicLab.Communication.Data {
|
---|
12 | public partial class LocalProcessDriverConfigurationView : ViewBase {
|
---|
13 | public LocalProcessDriverConfiguration LocalProcessDriverConfiguration {
|
---|
14 | get { return (LocalProcessDriverConfiguration)base.Item; }
|
---|
15 | set { base.Item = value; }
|
---|
16 | }
|
---|
17 |
|
---|
18 | public LocalProcessDriverConfigurationView() {
|
---|
19 | InitializeComponent();
|
---|
20 | }
|
---|
21 |
|
---|
22 | public LocalProcessDriverConfigurationView(LocalProcessDriverConfiguration localProcessDriverConfiguration)
|
---|
23 | : this() {
|
---|
24 | LocalProcessDriverConfiguration = localProcessDriverConfiguration;
|
---|
25 | }
|
---|
26 |
|
---|
27 | protected override void UpdateControls() {
|
---|
28 | base.UpdateControls();
|
---|
29 | if (LocalProcessDriverConfiguration == null) {
|
---|
30 | executablePathStringDataView.Enabled = false;
|
---|
31 | executablePathStringDataView.StringData = null;
|
---|
32 | argumentsStringDataView.Enabled = false;
|
---|
33 | argumentsStringDataView.StringData = null;
|
---|
34 | } else {
|
---|
35 | executablePathStringDataView.StringData = LocalProcessDriverConfiguration.ExecutablePath;
|
---|
36 | executablePathStringDataView.Enabled = true;
|
---|
37 | argumentsStringDataView.StringData = LocalProcessDriverConfiguration.Arguments;
|
---|
38 | argumentsStringDataView.Enabled = true;
|
---|
39 | }
|
---|
40 | }
|
---|
41 |
|
---|
42 | private void browseExecutableButtom_Click(object sender, EventArgs e) {
|
---|
43 | if (LocalProcessDriverConfiguration != null && executablePathOpenFileDialog.ShowDialog() == DialogResult.OK) {
|
---|
44 | LocalProcessDriverConfiguration.ExecutablePath = new StringData(executablePathOpenFileDialog.FileName);
|
---|
45 | }
|
---|
46 | }
|
---|
47 | }
|
---|
48 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.