Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive_Milestone3/sources/HeuristicLab.CEDMA.Server/3.3/DispatcherView.cs @ 4342

Last change on this file since 4342 was 2094, checked in by gkronber, 15 years ago

Fixed updating of executer and dispatcher views and renamed ServerForm to ServerView. #676 (Cockpit for the CEDMA Server to control algorithm settings)

File size: 942 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Drawing;
5using System.Data;
6using System.Linq;
7using System.Text;
8using System.Windows.Forms;
9using HeuristicLab.Core;
10
11namespace HeuristicLab.CEDMA.Server {
12  public partial class DispatcherView : ViewBase {
13    private DispatcherBase dispatcher;
14    public DispatcherView(DispatcherBase dispatcher) : base() {
15      this.dispatcher = dispatcher;
16      InitializeComponent();
17      UpdateControls();
18      dispatcher.Changed += (sender, args) => UpdateControls();
19    }
20
21    protected override void UpdateControls() {
22      base.UpdateControls();
23
24      foreach (string targetVar in dispatcher.AllowedTargetVariables) {
25        targetVariableList.Items.Add(targetVar);
26      }
27
28      foreach (string inputVar in dispatcher.AllowedInputVariables) {
29        inputVariableList.Items.Add(inputVar);
30      }
31    }
32  }
33}
Note: See TracBrowser for help on using the repository browser.