Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/22/11 03:08:43 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

Location:
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Administration/Views
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Administration/Views/AdministratorView.Designer.cs

    r5533 r5534  
    4949      this.platformsTabPage = new System.Windows.Forms.TabPage();
    5050      this.platformCollectionView = new HeuristicLab.Clients.OKB.Administration.PlatformCollectionView();
    51       this.dataTypesTabPage = new System.Windows.Forms.TabPage();
    5251      this.algorithmClassesTabPage = new System.Windows.Forms.TabPage();
    5352      this.algorithmClassCollectionView = new HeuristicLab.Clients.OKB.Administration.AlgorithmClassCollectionView();
     
    5554      this.algorithmCollectionView = new HeuristicLab.Clients.OKB.Administration.AlgorithmCollectionView();
    5655      this.problemClassesTabPage = new System.Windows.Forms.TabPage();
     56      this.problemClassCollectionView = new HeuristicLab.Clients.OKB.Administration.ProblemClassCollectionView();
    5757      this.problemsTabPage = new System.Windows.Forms.TabPage();
     58      this.problemCollectionView = new HeuristicLab.Clients.OKB.Administration.ProblemCollectionView();
    5859      this.refreshButton = new System.Windows.Forms.Button();
    5960      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    60       this.problemClassCollectionView = new HeuristicLab.Clients.OKB.Administration.ProblemClassCollectionView();
    61       this.problemCollectionView = new HeuristicLab.Clients.OKB.Administration.ProblemCollectionView();
    6261      this.tabControl.SuspendLayout();
    6362      this.platformsTabPage.SuspendLayout();
    64       this.dataTypesTabPage.SuspendLayout();
    6563      this.algorithmClassesTabPage.SuspendLayout();
    6664      this.algorithmsTabPage.SuspendLayout();
     
    7573                  | System.Windows.Forms.AnchorStyles.Right)));
    7674      this.tabControl.Controls.Add(this.platformsTabPage);
    77       this.tabControl.Controls.Add(this.dataTypesTabPage);
    7875      this.tabControl.Controls.Add(this.algorithmClassesTabPage);
    7976      this.tabControl.Controls.Add(this.algorithmsTabPage);
     
    110107      this.platformCollectionView.TabIndex = 0;
    111108      //
    112       // dataTypesTabPage
    113       //
    114       this.dataTypesTabPage.Location = new System.Drawing.Point(4, 22);
    115       this.dataTypesTabPage.Name = "dataTypesTabPage";
    116       this.dataTypesTabPage.Padding = new System.Windows.Forms.Padding(3);
    117       this.dataTypesTabPage.Size = new System.Drawing.Size(719, 380);
    118       this.dataTypesTabPage.TabIndex = 3;
    119       this.dataTypesTabPage.Text = "Data Types";
    120       this.dataTypesTabPage.UseVisualStyleBackColor = true;
    121       //
    122109      // algorithmClassesTabPage
    123110      //
     
    178165      this.problemClassesTabPage.UseVisualStyleBackColor = true;
    179166      //
     167      // problemClassCollectionView
     168      //
     169      this.problemClassCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     170                  | System.Windows.Forms.AnchorStyles.Left)
     171                  | System.Windows.Forms.AnchorStyles.Right)));
     172      this.problemClassCollectionView.Caption = "ProblemClassCollection View";
     173      this.problemClassCollectionView.Content = null;
     174      this.problemClassCollectionView.Location = new System.Drawing.Point(3, 3);
     175      this.problemClassCollectionView.Name = "problemClassCollectionView";
     176      this.problemClassCollectionView.ReadOnly = false;
     177      this.problemClassCollectionView.Size = new System.Drawing.Size(713, 374);
     178      this.problemClassCollectionView.TabIndex = 0;
     179      //
    180180      // problemsTabPage
    181181      //
     
    187187      this.problemsTabPage.Text = "Problems";
    188188      this.problemsTabPage.UseVisualStyleBackColor = true;
     189      //
     190      // problemCollectionView
     191      //
     192      this.problemCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     193                  | System.Windows.Forms.AnchorStyles.Left)
     194                  | System.Windows.Forms.AnchorStyles.Right)));
     195      this.problemCollectionView.Caption = "ProblemCollection View";
     196      this.problemCollectionView.Content = null;
     197      this.problemCollectionView.Location = new System.Drawing.Point(3, 3);
     198      this.problemCollectionView.Name = "problemCollectionView";
     199      this.problemCollectionView.ReadOnly = false;
     200      this.problemCollectionView.Size = new System.Drawing.Size(713, 374);
     201      this.problemCollectionView.TabIndex = 0;
    189202      //
    190203      // refreshButton
     
    199212      this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
    200213      //
    201       // problemClassCollectionView
    202       //
    203       this.problemClassCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    204                   | System.Windows.Forms.AnchorStyles.Left)
    205                   | System.Windows.Forms.AnchorStyles.Right)));
    206       this.problemClassCollectionView.Caption = "ProblemClassCollection View";
    207       this.problemClassCollectionView.Content = null;
    208       this.problemClassCollectionView.Location = new System.Drawing.Point(3, 3);
    209       this.problemClassCollectionView.Name = "problemClassCollectionView";
    210       this.problemClassCollectionView.ReadOnly = false;
    211       this.problemClassCollectionView.Size = new System.Drawing.Size(713, 374);
    212       this.problemClassCollectionView.TabIndex = 0;
    213       //
    214       // problemCollectionView
    215       //
    216       this.problemCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    217                   | System.Windows.Forms.AnchorStyles.Left)
    218                   | System.Windows.Forms.AnchorStyles.Right)));
    219       this.problemCollectionView.Caption = "ProblemCollection View";
    220       this.problemCollectionView.Content = null;
    221       this.problemCollectionView.Location = new System.Drawing.Point(3, 3);
    222       this.problemCollectionView.Name = "problemCollectionView";
    223       this.problemCollectionView.ReadOnly = false;
    224       this.problemCollectionView.Size = new System.Drawing.Size(713, 374);
    225       this.problemCollectionView.TabIndex = 0;
    226       //
    227214      // AdministratorView
    228215      //
     
    235222      this.tabControl.ResumeLayout(false);
    236223      this.platformsTabPage.ResumeLayout(false);
    237       this.dataTypesTabPage.ResumeLayout(false);
    238224      this.algorithmClassesTabPage.ResumeLayout(false);
    239225      this.algorithmsTabPage.ResumeLayout(false);
     
    255241    private System.Windows.Forms.TabPage platformsTabPage;
    256242    private PlatformCollectionView platformCollectionView;
    257     private System.Windows.Forms.TabPage dataTypesTabPage;
    258243    private System.Windows.Forms.TabPage problemClassesTabPage;
    259244    private System.Windows.Forms.TabPage problemsTabPage;
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Administration/Views/AlgorithmView.Designer.cs

    r5533 r5534  
    2626    /// </summary>
    2727    private System.ComponentModel.IContainer components = null;
    28 
    29     /// <summary>
    30     /// Clean up any resources being used.
    31     /// </summary>
    32     /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    33     protected override void Dispose(bool disposing) {
    34       if (disposing) {
    35         if (components != null) components.Dispose();
    36       }
    37       base.Dispose(disposing);
    38     }
    3928
    4029    #region Component Designer generated code
     
    4938      this.algorithmClassLabel = new System.Windows.Forms.Label();
    5039      this.algorithmClassComboBox = new System.Windows.Forms.ComboBox();
    51       this.usersListBox = new System.Windows.Forms.ListBox();
    5240      this.tabControl = new System.Windows.Forms.TabControl();
    5341      this.usersTabPage = new System.Windows.Forms.TabPage();
     42      this.usersListBox = new System.Windows.Forms.CheckedListBox();
    5443      this.storeUsersButton = new System.Windows.Forms.Button();
    5544      this.refreshUsersButton = new System.Windows.Forms.Button();
    5645      this.dataTabPage = new System.Windows.Forms.TabPage();
    57       this.parametersTabPage = new System.Windows.Forms.TabPage();
    58       this.refreshParametersButton = new System.Windows.Forms.Button();
    59       this.resultsTabPage = new System.Windows.Forms.TabPage();
    60       this.refreshResultsButton = new System.Windows.Forms.Button();
    61       this.experimentsTabPage = new System.Windows.Forms.TabPage();
    62       this.refreshExperimentsButton = new System.Windows.Forms.Button();
     46      this.dataTypeNameLabel = new System.Windows.Forms.Label();
     47      this.dataTypeGroupBox = new System.Windows.Forms.GroupBox();
     48      this.dataTypeTypeNameTextBox = new System.Windows.Forms.TextBox();
     49      this.setDataTypeButton = new System.Windows.Forms.Button();
     50      this.dataTypeNameTextBox = new System.Windows.Forms.TextBox();
     51      this.dataTypeTypeNameLabel = new System.Windows.Forms.Label();
    6352      this.tabControl.SuspendLayout();
    6453      this.usersTabPage.SuspendLayout();
    65       this.dataTabPage.SuspendLayout();
    66       this.parametersTabPage.SuspendLayout();
    67       this.resultsTabPage.SuspendLayout();
    68       this.experimentsTabPage.SuspendLayout();
     54      this.dataTypeGroupBox.SuspendLayout();
    6955      this.SuspendLayout();
    7056      //
     
    125111      this.algorithmClassComboBox.SelectedValueChanged += new System.EventHandler(this.algorithmClassComboBox_SelectedValueChanged);
    126112      //
    127       // usersListBox
    128       //
    129       this.usersListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    130                   | System.Windows.Forms.AnchorStyles.Left)
    131                   | System.Windows.Forms.AnchorStyles.Right)));
    132       this.usersListBox.Enabled = false;
    133       this.usersListBox.FormattingEnabled = true;
    134       this.usersListBox.Location = new System.Drawing.Point(6, 36);
    135       this.usersListBox.Name = "usersListBox";
    136       this.usersListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple;
    137       this.usersListBox.Size = new System.Drawing.Size(613, 225);
    138       this.usersListBox.TabIndex = 2;
    139       this.usersListBox.SelectedIndexChanged += new System.EventHandler(this.usersListBox_SelectedIndexChanged);
    140       //
    141113      // tabControl
    142114      //
     
    146118      this.tabControl.Controls.Add(this.usersTabPage);
    147119      this.tabControl.Controls.Add(this.dataTabPage);
    148       this.tabControl.Controls.Add(this.parametersTabPage);
    149       this.tabControl.Controls.Add(this.resultsTabPage);
    150       this.tabControl.Controls.Add(this.experimentsTabPage);
    151       this.tabControl.Location = new System.Drawing.Point(0, 162);
     120      this.tabControl.Location = new System.Drawing.Point(0, 239);
    152121      this.tabControl.Name = "tabControl";
    153122      this.tabControl.SelectedIndex = 0;
    154       this.tabControl.Size = new System.Drawing.Size(633, 292);
     123      this.tabControl.Size = new System.Drawing.Size(633, 206);
    155124      this.tabControl.TabIndex = 9;
    156125      //
    157126      // usersTabPage
    158127      //
     128      this.usersTabPage.Controls.Add(this.usersListBox);
    159129      this.usersTabPage.Controls.Add(this.storeUsersButton);
    160130      this.usersTabPage.Controls.Add(this.refreshUsersButton);
    161       this.usersTabPage.Controls.Add(this.usersListBox);
    162131      this.usersTabPage.Location = new System.Drawing.Point(4, 22);
    163132      this.usersTabPage.Name = "usersTabPage";
    164133      this.usersTabPage.Padding = new System.Windows.Forms.Padding(3);
    165       this.usersTabPage.Size = new System.Drawing.Size(625, 266);
     134      this.usersTabPage.Size = new System.Drawing.Size(625, 180);
    166135      this.usersTabPage.TabIndex = 0;
    167136      this.usersTabPage.Text = "Authorized Users";
    168137      this.usersTabPage.UseVisualStyleBackColor = true;
     138      //
     139      // usersListBox
     140      //
     141      this.usersListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     142                  | System.Windows.Forms.AnchorStyles.Left)
     143                  | System.Windows.Forms.AnchorStyles.Right)));
     144      this.usersListBox.FormattingEnabled = true;
     145      this.usersListBox.Location = new System.Drawing.Point(6, 35);
     146      this.usersListBox.Name = "usersListBox";
     147      this.usersListBox.Size = new System.Drawing.Size(613, 139);
     148      this.usersListBox.TabIndex = 3;
    169149      //
    170150      // storeUsersButton
     
    195175      this.dataTabPage.Name = "dataTabPage";
    196176      this.dataTabPage.Padding = new System.Windows.Forms.Padding(3);
    197       this.dataTabPage.Size = new System.Drawing.Size(625, 266);
     177      this.dataTabPage.Size = new System.Drawing.Size(625, 180);
    198178      this.dataTabPage.TabIndex = 1;
    199179      this.dataTabPage.Text = "Platform-Specific Algorithm Data";
    200180      this.dataTabPage.UseVisualStyleBackColor = true;
    201181      //
    202       // refreshParametersButton
    203       //
    204       this.refreshParametersButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh;
    205       this.refreshParametersButton.Location = new System.Drawing.Point(6, 6);
    206       this.refreshParametersButton.Name = "refreshParametersButton";
    207       this.refreshParametersButton.Size = new System.Drawing.Size(24, 24);
    208       this.refreshParametersButton.TabIndex = 0;
    209       this.refreshParametersButton.UseVisualStyleBackColor = true;
    210       //
    211       // refreshResultsButton
    212       //
    213       this.refreshResultsButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh;
    214       this.refreshResultsButton.Location = new System.Drawing.Point(6, 6);
    215       this.refreshResultsButton.Name = "refreshResultsButton";
    216       this.refreshResultsButton.Size = new System.Drawing.Size(24, 24);
    217       this.refreshResultsButton.TabIndex = 0;
    218       this.refreshResultsButton.UseVisualStyleBackColor = true;
    219       //
    220       // refreshExperimentsButton
    221       //
    222       this.refreshExperimentsButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh;
    223       this.refreshExperimentsButton.Location = new System.Drawing.Point(6, 6);
    224       this.refreshExperimentsButton.Name = "refreshExperimentsButton";
    225       this.refreshExperimentsButton.Size = new System.Drawing.Size(24, 24);
    226       this.refreshExperimentsButton.TabIndex = 0;
    227       this.refreshExperimentsButton.UseVisualStyleBackColor = true;
     182      // dataTypeNameLabel
     183      //
     184      this.dataTypeNameLabel.AutoSize = true;
     185      this.dataTypeNameLabel.Location = new System.Drawing.Point(6, 22);
     186      this.dataTypeNameLabel.Name = "dataTypeNameLabel";
     187      this.dataTypeNameLabel.Size = new System.Drawing.Size(38, 13);
     188      this.dataTypeNameLabel.TabIndex = 7;
     189      this.dataTypeNameLabel.Text = "&Name:";
     190      //
     191      // dataTypeGroupBox
     192      //
     193      this.dataTypeGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     194                  | System.Windows.Forms.AnchorStyles.Right)));
     195      this.dataTypeGroupBox.Controls.Add(this.dataTypeTypeNameTextBox);
     196      this.dataTypeGroupBox.Controls.Add(this.setDataTypeButton);
     197      this.dataTypeGroupBox.Controls.Add(this.dataTypeNameTextBox);
     198      this.dataTypeGroupBox.Controls.Add(this.dataTypeTypeNameLabel);
     199      this.dataTypeGroupBox.Controls.Add(this.dataTypeNameLabel);
     200      this.dataTypeGroupBox.Location = new System.Drawing.Point(0, 146);
     201      this.dataTypeGroupBox.Name = "dataTypeGroupBox";
     202      this.dataTypeGroupBox.Size = new System.Drawing.Size(633, 77);
     203      this.dataTypeGroupBox.TabIndex = 10;
     204      this.dataTypeGroupBox.TabStop = false;
     205      this.dataTypeGroupBox.Text = "Data Type";
     206      //
     207      // dataTypeTypeNameTextBox
     208      //
     209      this.dataTypeTypeNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     210                  | System.Windows.Forms.AnchorStyles.Right)));
     211      this.dataTypeTypeNameTextBox.Location = new System.Drawing.Point(90, 45);
     212      this.dataTypeTypeNameTextBox.Name = "dataTypeTypeNameTextBox";
     213      this.dataTypeTypeNameTextBox.Size = new System.Drawing.Size(507, 20);
     214      this.dataTypeTypeNameTextBox.TabIndex = 8;
     215      this.dataTypeTypeNameTextBox.Validated += new System.EventHandler(this.dataTypeTypeNameTextBox_Validated);
     216      //
     217      // setDataTypeButton
     218      //
     219      this.setDataTypeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     220      this.setDataTypeButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Edit;
     221      this.setDataTypeButton.Location = new System.Drawing.Point(603, 29);
     222      this.setDataTypeButton.Name = "setDataTypeButton";
     223      this.setDataTypeButton.Size = new System.Drawing.Size(24, 24);
     224      this.setDataTypeButton.TabIndex = 1;
     225      this.toolTip.SetToolTip(this.setDataTypeButton, "Set Data Type");
     226      this.setDataTypeButton.UseVisualStyleBackColor = true;
     227      this.setDataTypeButton.Click += new System.EventHandler(this.setDataTypeButton_Click);
     228      //
     229      // dataTypeNameTextBox
     230      //
     231      this.dataTypeNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     232                  | System.Windows.Forms.AnchorStyles.Right)));
     233      this.dataTypeNameTextBox.Location = new System.Drawing.Point(90, 19);
     234      this.dataTypeNameTextBox.Name = "dataTypeNameTextBox";
     235      this.dataTypeNameTextBox.Size = new System.Drawing.Size(507, 20);
     236      this.dataTypeNameTextBox.TabIndex = 8;
     237      this.dataTypeNameTextBox.Validated += new System.EventHandler(this.dataTypeNameTextBox_Validated);
     238      //
     239      // dataTypeTypeNameLabel
     240      //
     241      this.dataTypeTypeNameLabel.AutoSize = true;
     242      this.dataTypeTypeNameLabel.Location = new System.Drawing.Point(6, 48);
     243      this.dataTypeTypeNameLabel.Name = "dataTypeTypeNameLabel";
     244      this.dataTypeTypeNameLabel.Size = new System.Drawing.Size(65, 13);
     245      this.dataTypeTypeNameLabel.TabIndex = 7;
     246      this.dataTypeTypeNameLabel.Text = "&Type Name:";
    228247      //
    229248      // AlgorithmView
    230249      //
    231250      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     251      this.Controls.Add(this.dataTypeGroupBox);
    232252      this.Controls.Add(this.tabControl);
    233253      this.Controls.Add(this.platformComboBox);
     
    236256      this.Controls.Add(this.algorithmClassLabel);
    237257      this.Name = "AlgorithmView";
    238       this.Size = new System.Drawing.Size(633, 454);
     258      this.Size = new System.Drawing.Size(633, 445);
    239259      this.Controls.SetChildIndex(this.algorithmClassLabel, 0);
    240260      this.Controls.SetChildIndex(this.algorithmClassComboBox, 0);
     
    242262      this.Controls.SetChildIndex(this.platformComboBox, 0);
    243263      this.Controls.SetChildIndex(this.tabControl, 0);
     264      this.Controls.SetChildIndex(this.dataTypeGroupBox, 0);
    244265      this.Controls.SetChildIndex(this.storeButton, 0);
    245266      this.Controls.SetChildIndex(this.nameTextBox, 0);
     
    249270      this.tabControl.ResumeLayout(false);
    250271      this.usersTabPage.ResumeLayout(false);
    251       this.dataTabPage.ResumeLayout(false);
    252       this.parametersTabPage.ResumeLayout(false);
    253       this.resultsTabPage.ResumeLayout(false);
    254       this.experimentsTabPage.ResumeLayout(false);
     272      this.dataTypeGroupBox.ResumeLayout(false);
     273      this.dataTypeGroupBox.PerformLayout();
    255274      this.ResumeLayout(false);
    256275      this.PerformLayout();
     
    264283    private System.Windows.Forms.Label algorithmClassLabel;
    265284    private System.Windows.Forms.ComboBox algorithmClassComboBox;
    266     private System.Windows.Forms.ListBox usersListBox;
    267285    private System.Windows.Forms.TabControl tabControl;
    268286    private System.Windows.Forms.TabPage usersTabPage;
     
    270288    private System.Windows.Forms.Button refreshUsersButton;
    271289    private System.Windows.Forms.TabPage dataTabPage;
    272     private System.Windows.Forms.TabPage parametersTabPage;
    273     private System.Windows.Forms.TabPage resultsTabPage;
    274     private System.Windows.Forms.Button refreshParametersButton;
    275     private System.Windows.Forms.Button refreshResultsButton;
    276     private System.Windows.Forms.TabPage experimentsTabPage;
    277     private System.Windows.Forms.Button refreshExperimentsButton;
     290    private System.Windows.Forms.CheckedListBox usersListBox;
     291    private System.Windows.Forms.Label dataTypeNameLabel;
     292    private System.Windows.Forms.GroupBox dataTypeGroupBox;
     293    private System.Windows.Forms.TextBox dataTypeTypeNameTextBox;
     294    private System.Windows.Forms.TextBox dataTypeNameTextBox;
     295    private System.Windows.Forms.Label dataTypeTypeNameLabel;
     296    private System.Windows.Forms.Button setDataTypeButton;
    278297
    279298  }
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Administration/Views/AlgorithmView.cs

    r5533 r5534  
    2525using System.Windows.Forms;
    2626using HeuristicLab.Clients.OKB.Authentication;
     27using HeuristicLab.Core.Views;
    2728using HeuristicLab.MainForm;
    2829using HeuristicLab.MainForm.WindowsForms;
     30using HeuristicLab.Optimization;
    2931
    3032namespace HeuristicLab.Clients.OKB.Administration {
     
    3436    private List<Platform> platformComboBoxValues;
    3537    private List<AlgorithmClass> algorithmClassComboBoxValues;
     38    private TypeSelectorDialog typeSelectorDialog;
    3639
    3740    public new Algorithm Content {
     
    4245    public AlgorithmView() {
    4346      InitializeComponent();
     47    }
     48
     49    protected override void Dispose(bool disposing) {
     50      if (disposing) {
     51        if (components != null) components.Dispose();
     52        if (typeSelectorDialog != null) typeSelectorDialog.Dispose();
     53      }
     54      base.Dispose(disposing);
    4455    }
    4556
     
    5768        platformComboBox.SelectedIndex = -1;
    5869        algorithmClassComboBox.SelectedIndex = -1;
     70        dataTypeNameTextBox.Text = "";
     71        dataTypeTypeNameTextBox.Text = "";
    5972      } else {
    6073        platformComboBox.SelectedItem = platformComboBoxValues.FirstOrDefault(p => p.Id == Content.PlatformId);
    6174        algorithmClassComboBox.SelectedItem = algorithmClassComboBoxValues.FirstOrDefault(a => a.Id == Content.AlgorithmClassId);
     75        dataTypeNameTextBox.Text = Content.DataTypeName;
     76        dataTypeTypeNameTextBox.Text = Content.DataTypeTypeName;
    6277      }
    6378      usersListBox.DataSource = null;
     
    6883      platformComboBox.Enabled = (Content != null) && !ReadOnly;
    6984      algorithmClassComboBox.Enabled = (Content != null) && !ReadOnly;
     85      dataTypeGroupBox.Enabled = (Content != null) && !ReadOnly;
    7086      refreshUsersButton.Enabled = Content != null;
    7187      storeUsersButton.Enabled = (usersListBox.DataSource != null) && !ReadOnly;
    7288      usersListBox.Enabled = (usersListBox.DataSource != null) && !ReadOnly;
     89
     90      bool isHL33Platform = platformComboBox.Text == "HeuristicLab 3.3";
     91      setDataTypeButton.Enabled = isHL33Platform && !ReadOnly;
     92      dataTypeNameTextBox.ReadOnly = isHL33Platform;
     93      dataTypeTypeNameTextBox.ReadOnly = isHL33Platform;
    7394    }
    7495
     
    7798        case "PlatformId":
    7899          platformComboBox.SelectedItem = platformComboBoxValues.FirstOrDefault(p => p.Id == Content.PlatformId);
     100          SetEnabledStateOfControls();
    79101          break;
    80102        case "AlgorithmClassId":
    81103          algorithmClassComboBox.SelectedItem = algorithmClassComboBoxValues.FirstOrDefault(a => a.Id == Content.AlgorithmClassId);
     104          break;
     105        case "DataTypeName":
     106          dataTypeNameTextBox.Text = Content.DataTypeName;
     107          break;
     108        case "DataTypeTypeName":
     109          dataTypeTypeNameTextBox.Text = Content.DataTypeTypeName;
    82110          break;
    83111      }
     
    97125    }
    98126
     127    private void setDataTypeButton_Click(object sender, EventArgs e) {
     128      if (typeSelectorDialog == null) {
     129        typeSelectorDialog = new TypeSelectorDialog();
     130        typeSelectorDialog.Caption = "Select Algorithm";
     131        typeSelectorDialog.TypeSelector.Caption = "Available Algorithms";
     132        typeSelectorDialog.TypeSelector.Configure(typeof(IAlgorithm), false, true);
     133      }
     134      if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
     135        Content.DataTypeName = typeSelectorDialog.TypeSelector.SelectedType.Name;
     136        Content.DataTypeTypeName = typeSelectorDialog.TypeSelector.SelectedType.AssemblyQualifiedName;
     137      }
     138    }
     139    private void dataTypeNameTextBox_Validated(object sender, EventArgs e) {
     140      Content.DataTypeName = dataTypeNameTextBox.Text;
     141    }
     142    private void dataTypeTypeNameTextBox_Validated(object sender, EventArgs e) {
     143      Content.DataTypeTypeName = dataTypeTypeNameTextBox.Text;
     144    }
     145
    99146    private void refreshUsersButton_Click(object sender, System.EventArgs e) {
    100147      List<Guid> ids = AdministrationClient.Instance.GetAlgorithmUsers(Content.Id);
     
    103150        usersListBox.DataSource = users;
    104151        usersListBox.DisplayMember = "Name";
    105         usersListBox.SelectedItems.Clear();
    106         foreach (Guid id in ids)
    107           usersListBox.SelectedItems.Add(users.First(u => u.Id == id));
     152        for (int i = 0; i < users.Count; i++)
     153          usersListBox.SetItemChecked(i, ids.Contains(users[i].Id));
    108154        usersListBox.Enabled = !ReadOnly;
    109155        storeUsersButton.Enabled = false;
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Administration/Views/ProblemView.Designer.cs

    r5533 r5534  
    4949      this.problemClassLabel = new System.Windows.Forms.Label();
    5050      this.problemClassComboBox = new System.Windows.Forms.ComboBox();
    51       this.usersListBox = new System.Windows.Forms.ListBox();
    5251      this.tabControl = new System.Windows.Forms.TabControl();
    5352      this.usersTabPage = new System.Windows.Forms.TabPage();
     
    5554      this.refreshUsersButton = new System.Windows.Forms.Button();
    5655      this.dataTabPage = new System.Windows.Forms.TabPage();
     56      this.usersListBox = new System.Windows.Forms.CheckedListBox();
    5757      this.tabControl.SuspendLayout();
    5858      this.usersTabPage.SuspendLayout();
    59       this.dataTabPage.SuspendLayout();
    6059      this.SuspendLayout();
    6160      //
     
    10099      this.problemClassLabel.Location = new System.Drawing.Point(3, 111);
    101100      this.problemClassLabel.Name = "problemClassLabel";
    102       this.problemClassLabel.Size = new System.Drawing.Size(81, 13);
     101      this.problemClassLabel.Size = new System.Drawing.Size(76, 13);
    103102      this.problemClassLabel.TabIndex = 7;
    104103      this.problemClassLabel.Text = "&Problem Class:";
     
    116115      this.problemClassComboBox.SelectedValueChanged += new System.EventHandler(this.problemClassComboBox_SelectedValueChanged);
    117116      //
    118       // usersListBox
    119       //
    120       this.usersListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    121                   | System.Windows.Forms.AnchorStyles.Left)
    122                   | System.Windows.Forms.AnchorStyles.Right)));
    123       this.usersListBox.Enabled = false;
    124       this.usersListBox.FormattingEnabled = true;
    125       this.usersListBox.Location = new System.Drawing.Point(6, 36);
    126       this.usersListBox.Name = "usersListBox";
    127       this.usersListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple;
    128       this.usersListBox.Size = new System.Drawing.Size(613, 225);
    129       this.usersListBox.TabIndex = 2;
    130       this.usersListBox.SelectedIndexChanged += new System.EventHandler(this.usersListBox_SelectedIndexChanged);
    131       //
    132117      // tabControl
    133118      //
     
    140125      this.tabControl.Name = "tabControl";
    141126      this.tabControl.SelectedIndex = 0;
    142       this.tabControl.Size = new System.Drawing.Size(633, 292);
     127      this.tabControl.Size = new System.Drawing.Size(633, 283);
    143128      this.tabControl.TabIndex = 9;
    144129      //
    145130      // usersTabPage
    146131      //
     132      this.usersTabPage.Controls.Add(this.usersListBox);
    147133      this.usersTabPage.Controls.Add(this.storeUsersButton);
    148134      this.usersTabPage.Controls.Add(this.refreshUsersButton);
    149       this.usersTabPage.Controls.Add(this.usersListBox);
    150135      this.usersTabPage.Location = new System.Drawing.Point(4, 22);
    151136      this.usersTabPage.Name = "usersTabPage";
    152137      this.usersTabPage.Padding = new System.Windows.Forms.Padding(3);
    153       this.usersTabPage.Size = new System.Drawing.Size(625, 266);
     138      this.usersTabPage.Size = new System.Drawing.Size(625, 257);
    154139      this.usersTabPage.TabIndex = 0;
    155140      this.usersTabPage.Text = "Authorized Users";
     
    188173      this.dataTabPage.UseVisualStyleBackColor = true;
    189174      //
     175      // usersListBox
     176      //
     177      this.usersListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     178                  | System.Windows.Forms.AnchorStyles.Left)
     179                  | System.Windows.Forms.AnchorStyles.Right)));
     180      this.usersListBox.FormattingEnabled = true;
     181      this.usersListBox.Location = new System.Drawing.Point(6, 36);
     182      this.usersListBox.Name = "usersListBox";
     183      this.usersListBox.Size = new System.Drawing.Size(613, 214);
     184      this.usersListBox.TabIndex = 3;
     185      //
    190186      // ProblemView
    191187      //
     
    197193      this.Controls.Add(this.problemClassLabel);
    198194      this.Name = "ProblemView";
    199       this.Size = new System.Drawing.Size(633, 454);
     195      this.Size = new System.Drawing.Size(633, 445);
    200196      this.Controls.SetChildIndex(this.problemClassLabel, 0);
    201197      this.Controls.SetChildIndex(this.problemClassComboBox, 0);
     
    210206      this.tabControl.ResumeLayout(false);
    211207      this.usersTabPage.ResumeLayout(false);
    212       this.dataTabPage.ResumeLayout(false);
    213208      this.ResumeLayout(false);
    214209      this.PerformLayout();
     
    222217    private System.Windows.Forms.Label problemClassLabel;
    223218    private System.Windows.Forms.ComboBox problemClassComboBox;
    224     private System.Windows.Forms.ListBox usersListBox;
    225219    private System.Windows.Forms.TabControl tabControl;
    226220    private System.Windows.Forms.TabPage usersTabPage;
     
    228222    private System.Windows.Forms.Button refreshUsersButton;
    229223    private System.Windows.Forms.TabPage dataTabPage;
     224    private System.Windows.Forms.CheckedListBox usersListBox;
    230225
    231226  }
Note: See TracChangeset for help on using the changeset viewer.