Last change
on this file since 6133 was
6133,
checked in by gkronber, 13 years ago
|
#1471: imported generic parts of DataImporter from private code base
|
File size:
1.1 KB
|
Line | |
---|
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.Command.View {
|
---|
10 | public partial class SearchAndReplaceCommandView : SearchWithMatchOperationCommandView {
|
---|
11 | public SearchAndReplaceCommandView()
|
---|
12 | : base() {
|
---|
13 | InitializeComponent();
|
---|
14 | this.txtReplaceValue.Text = "0";
|
---|
15 | }
|
---|
16 |
|
---|
17 | public SearchAndReplaceCommandView(SearchAndReplaceCommand command)
|
---|
18 | : this() {
|
---|
19 | this.Command = command;
|
---|
20 | }
|
---|
21 |
|
---|
22 | public new SearchAndReplaceCommand Command {
|
---|
23 | get { return (SearchAndReplaceCommand)base.Command; }
|
---|
24 | set { base.Command = value; this.UpdateCommand(); }
|
---|
25 | }
|
---|
26 |
|
---|
27 | public string ReplaceValue {
|
---|
28 | get { return this.Command.ReplaceValue; }
|
---|
29 | }
|
---|
30 |
|
---|
31 | private void txtReplaceValue_TextChanged(object sender, System.EventArgs e) {
|
---|
32 | this.UpdateCommand();
|
---|
33 | }
|
---|
34 |
|
---|
35 | private void UpdateCommand() {
|
---|
36 | if (this.Command != null)
|
---|
37 | this.Command.ReplaceValue = this.txtReplaceValue.Text;
|
---|
38 | }
|
---|
39 | }
|
---|
40 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.