Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/View/FilterSavitzkyGolayCommandView.cs @ 6133

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.6 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Text;
7using System.Windows.Forms;
8
9namespace HeuristicLab.DataImporter.Command.View {
10  public partial class FilterSavitzkyGolayCommandView : HeuristicLab.DataImporter.Data.CommandBase.CommandViewBase {
11    private FilterSavitzkyGolayCommandView() {
12      InitializeComponent();
13    }
14
15    public FilterSavitzkyGolayCommandView(FilterSavitzkyGolayCommand command)
16      : this() {
17      this.Command = command;
18    }
19
20    public new FilterSavitzkyGolayCommand Command {
21      get { return (FilterSavitzkyGolayCommand)base.Command; }
22      protected set { base.Command = value; this.UpdateCommand(); }
23    }
24
25    public int WindowLeft {
26      get { return this.Command.WindowLeft; }
27    }
28    public int WindowRight {
29      get { return this.Command.WindowRight; }
30    }
31    public int Order {
32      get { return this.Command.Order; }
33    }
34
35    private void numWindowLeft_ValueChanged(object sender, System.EventArgs e) {
36      this.UpdateCommand();
37    }
38
39    private void numWindowRight_ValueChanged(object sender, System.EventArgs e) {
40      this.UpdateCommand();
41    }
42
43    private void UpdateCommand() {
44      if (Command != null) {
45        this.Command.WindowLeft = (int)this.numWindowLeft.Value;
46        this.Command.WindowRight = (int)this.numWindowRight.Value;
47        this.Command.Order = (int)this.numOrder.Value;
48      }
49    }
50
51    private void numOrder_ValueChanged(object sender, EventArgs e) {
52      this.UpdateCommand();
53    }
54  }
55}
Note: See TracBrowser for help on using the repository browser.