Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/14/11 05:34:43 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

Location:
branches/OKB
Files:
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB

    • Property svn:ignore
      •  

        old new  
        11*.suo
         2TestResults
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/DataTypeView.Designer.cs

    r4492 r5295  
    5050      this.platformLabel = new System.Windows.Forms.Label();
    5151      this.platformComboBox = new System.Windows.Forms.ComboBox();
    52       this.comboBox1 = new System.Windows.Forms.ComboBox();
    5352      this.sqlNameComboBox = new System.Windows.Forms.ComboBox();
     53      this.typeNameTextBox = new System.Windows.Forms.TextBox();
     54      this.typeNameLabel = new System.Windows.Forms.Label();
    5455      this.SuspendLayout();
    5556      //
     
    7172      this.nameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    7273                  | System.Windows.Forms.AnchorStyles.Right)));
    73       this.nameTextBox.Location = new System.Drawing.Point(71, 29);
     74      this.nameTextBox.Location = new System.Drawing.Point(74, 29);
    7475      this.nameTextBox.Name = "nameTextBox";
    75       this.nameTextBox.Size = new System.Drawing.Size(279, 20);
     76      this.nameTextBox.Size = new System.Drawing.Size(276, 20);
    7677      this.nameTextBox.TabIndex = 2;
    7778      this.nameTextBox.TextChanged += new System.EventHandler(this.nameTextBox_TextChanged);
     
    8182      //
    8283      this.sqlNameLabel.AutoSize = true;
    83       this.sqlNameLabel.Location = new System.Drawing.Point(3, 58);
     84      this.sqlNameLabel.Location = new System.Drawing.Point(3, 84);
    8485      this.sqlNameLabel.Name = "sqlNameLabel";
    8586      this.sqlNameLabel.Size = new System.Drawing.Size(62, 13);
    86       this.sqlNameLabel.TabIndex = 3;
     87      this.sqlNameLabel.TabIndex = 5;
    8788      this.sqlNameLabel.Text = "&SQL Name:";
    8889      //
     
    9091      //
    9192      this.platformLabel.AutoSize = true;
    92       this.platformLabel.Location = new System.Drawing.Point(3, 85);
     93      this.platformLabel.Location = new System.Drawing.Point(3, 111);
    9394      this.platformLabel.Name = "platformLabel";
    9495      this.platformLabel.Size = new System.Drawing.Size(48, 13);
    95       this.platformLabel.TabIndex = 5;
     96      this.platformLabel.TabIndex = 7;
    9697      this.platformLabel.Text = "&Platform:";
    9798      //
     
    102103      this.platformComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    103104      this.platformComboBox.FormattingEnabled = true;
    104       this.platformComboBox.Location = new System.Drawing.Point(71, 82);
     105      this.platformComboBox.Location = new System.Drawing.Point(74, 108);
    105106      this.platformComboBox.Name = "platformComboBox";
    106       this.platformComboBox.Size = new System.Drawing.Size(279, 21);
    107       this.platformComboBox.TabIndex = 6;
     107      this.platformComboBox.Size = new System.Drawing.Size(276, 21);
     108      this.platformComboBox.TabIndex = 8;
    108109      this.platformComboBox.SelectedValueChanged += new System.EventHandler(this.platformComboBox_SelectedValueChanged);
    109       //
    110       // comboBox1
    111       //
    112       this.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    113                   | System.Windows.Forms.AnchorStyles.Right)));
    114       this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    115       this.comboBox1.FormattingEnabled = true;
    116       this.comboBox1.Location = new System.Drawing.Point(71, 55);
    117       this.comboBox1.Name = "comboBox1";
    118       this.comboBox1.Size = new System.Drawing.Size(279, 21);
    119       this.comboBox1.TabIndex = 6;
    120       this.comboBox1.SelectedValueChanged += new System.EventHandler(this.platformComboBox_SelectedValueChanged);
    121110      //
    122111      // sqlNameComboBox
     
    132121            "nvarchar",
    133122            "varbinary"});
    134       this.sqlNameComboBox.Location = new System.Drawing.Point(71, 55);
     123      this.sqlNameComboBox.Location = new System.Drawing.Point(74, 81);
    135124      this.sqlNameComboBox.Name = "sqlNameComboBox";
    136       this.sqlNameComboBox.Size = new System.Drawing.Size(279, 21);
    137       this.sqlNameComboBox.TabIndex = 4;
     125      this.sqlNameComboBox.Size = new System.Drawing.Size(276, 21);
     126      this.sqlNameComboBox.TabIndex = 6;
    138127      this.sqlNameComboBox.SelectedValueChanged += new System.EventHandler(this.sqlNameComboBox_SelectedValueChanged);
     128      //
     129      // typeNameTextBox
     130      //
     131      this.typeNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     132                  | System.Windows.Forms.AnchorStyles.Right)));
     133      this.typeNameTextBox.Location = new System.Drawing.Point(74, 55);
     134      this.typeNameTextBox.Name = "typeNameTextBox";
     135      this.typeNameTextBox.Size = new System.Drawing.Size(279, 20);
     136      this.typeNameTextBox.TabIndex = 4;
     137      this.typeNameTextBox.TextChanged += new System.EventHandler(this.typeNameTextBox_TextChanged);
     138      this.typeNameTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.typeNameTextBox_KeyDown);
     139      //
     140      // typeNameLabel
     141      //
     142      this.typeNameLabel.AutoSize = true;
     143      this.typeNameLabel.Location = new System.Drawing.Point(3, 58);
     144      this.typeNameLabel.Name = "typeNameLabel";
     145      this.typeNameLabel.Size = new System.Drawing.Size(65, 13);
     146      this.typeNameLabel.TabIndex = 3;
     147      this.typeNameLabel.Text = "&Type Name:";
    139148      //
    140149      // DataTypeView
     
    143152      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    144153      this.Controls.Add(this.sqlNameComboBox);
    145       this.Controls.Add(this.comboBox1);
    146154      this.Controls.Add(this.platformComboBox);
    147155      this.Controls.Add(this.platformLabel);
    148156      this.Controls.Add(this.sqlNameLabel);
     157      this.Controls.Add(this.typeNameLabel);
    149158      this.Controls.Add(this.nameLabel);
     159      this.Controls.Add(this.typeNameTextBox);
    150160      this.Controls.Add(this.nameTextBox);
    151161      this.Name = "DataTypeView";
    152       this.Size = new System.Drawing.Size(350, 126);
     162      this.Size = new System.Drawing.Size(350, 143);
    153163      this.Controls.SetChildIndex(this.storeButton, 0);
    154164      this.Controls.SetChildIndex(this.nameTextBox, 0);
     165      this.Controls.SetChildIndex(this.typeNameTextBox, 0);
    155166      this.Controls.SetChildIndex(this.nameLabel, 0);
     167      this.Controls.SetChildIndex(this.typeNameLabel, 0);
    156168      this.Controls.SetChildIndex(this.sqlNameLabel, 0);
    157169      this.Controls.SetChildIndex(this.platformLabel, 0);
    158170      this.Controls.SetChildIndex(this.platformComboBox, 0);
    159       this.Controls.SetChildIndex(this.comboBox1, 0);
    160171      this.Controls.SetChildIndex(this.sqlNameComboBox, 0);
    161172      this.ResumeLayout(false);
     
    171182    private System.Windows.Forms.Label platformLabel;
    172183    private System.Windows.Forms.ComboBox platformComboBox;
    173     private System.Windows.Forms.ComboBox comboBox1;
    174184    private System.Windows.Forms.ComboBox sqlNameComboBox;
     185    private System.Windows.Forms.TextBox typeNameTextBox;
     186    private System.Windows.Forms.Label typeNameLabel;
    175187  }
    176188}
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/DataTypeView.cs

    r4558 r5295  
    5252      if (Content == null) {
    5353        nameTextBox.Text = string.Empty;
     54        typeNameTextBox.Text = string.Empty;
    5455        sqlNameComboBox.SelectedIndex = -1;
    5556        platformComboBox.SelectedIndex = -1;
     
    6061      } else {
    6162        nameTextBox.Text = Content.Name;
     63        typeNameTextBox.Text = Content.TypeName;
    6264        sqlNameComboBox.Text = Content.SqlName;
    6365        platformComboBox.SelectedItem = platformComboBoxValues.FirstOrDefault(p => p.Id == Content.PlatformId);
     
    7072      nameTextBox.Enabled = Content != null;
    7173      nameTextBox.ReadOnly = ReadOnly;
     74      typeNameTextBox.Enabled = Content != null;
     75      typeNameTextBox.ReadOnly = ReadOnly;
    7276      sqlNameComboBox.Enabled = (Content != null) && !ReadOnly;
    7377      platformComboBox.Enabled = (Content != null) && !ReadOnly;
     
    7983          nameTextBox.Text = Content.Name;
    8084          Caption = Content.Name;
     85          break;
     86        case "TypeName":
     87          typeNameTextBox.Text = Content.Name;
    8188          break;
    8289        case "SqlName":
     
    101108        Content.Name = nameTextBox.Text;
    102109    }
     110    private void typeNameTextBox_KeyDown(object sender, KeyEventArgs e) {
     111      if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return))
     112        typeNameLabel.Focus();  // set focus on label to validate data
     113      if (e.KeyCode == Keys.Escape) {
     114        typeNameTextBox.Text = Content.TypeName;
     115        typeNameLabel.Focus();  // set focus on label to validate data
     116      }
     117    }
     118    private void typeNameTextBox_TextChanged(object sender, EventArgs e) {
     119      if (typeNameTextBox.Text != Content.TypeName)
     120        Content.TypeName = typeNameTextBox.Text;
     121    }
    103122    private void sqlNameComboBox_SelectedValueChanged(object sender, EventArgs e) {
    104123      if (sqlNameComboBox.Text != Content.SqlName) {
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/QueryView.Designer.cs

    r5289 r5295  
    4646    private void InitializeComponent() {
    4747      this.components = new System.ComponentModel.Container();
    48       System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(QueryView));
    49       this.refreshButton = new System.Windows.Forms.Button();
     48      this.refreshResultsButton = new System.Windows.Forms.Button();
    5049      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    5150      this.showRunsButton = new System.Windows.Forms.Button();
     
    5453      this.filtersGroupBox = new System.Windows.Forms.GroupBox();
    5554      this.resultsGroupBox = new System.Windows.Forms.GroupBox();
    56       this.andFilterView = new HeuristicLab.Clients.OKB.AndFilterView();
     55      this.nrOfRunsButton = new System.Windows.Forms.Button();
     56      this.filterPanel = new System.Windows.Forms.Panel();
    5757      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
    5858      this.splitContainer.Panel1.SuspendLayout();
     
    6363      this.SuspendLayout();
    6464      //
    65       // refreshButton
     65      // refreshResultsButton
    6666      //
    67       this.refreshButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh;
    68       this.refreshButton.Location = new System.Drawing.Point(6, 19);
    69       this.refreshButton.Name = "refreshButton";
    70       this.refreshButton.Size = new System.Drawing.Size(24, 24);
    71       this.refreshButton.TabIndex = 0;
    72       this.toolTip.SetToolTip(this.refreshButton, "Refresh Data");
    73       this.refreshButton.UseVisualStyleBackColor = true;
    74       this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
     67      this.refreshResultsButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh;
     68      this.refreshResultsButton.Location = new System.Drawing.Point(6, 19);
     69      this.refreshResultsButton.Name = "refreshResultsButton";
     70      this.refreshResultsButton.Size = new System.Drawing.Size(24, 24);
     71      this.refreshResultsButton.TabIndex = 0;
     72      this.toolTip.SetToolTip(this.refreshResultsButton, "Refresh Results");
     73      this.refreshResultsButton.UseVisualStyleBackColor = true;
     74      this.refreshResultsButton.Click += new System.EventHandler(this.refreshResultsButton_Click);
    7575      //
    7676      // showRunsButton
     
    122122                  | System.Windows.Forms.AnchorStyles.Left)
    123123                  | System.Windows.Forms.AnchorStyles.Right)));
    124       this.filtersGroupBox.Controls.Add(this.andFilterView);
     124      this.filtersGroupBox.Controls.Add(this.filterPanel);
    125125      this.filtersGroupBox.Location = new System.Drawing.Point(0, 0);
    126126      this.filtersGroupBox.Name = "filtersGroupBox";
     
    135135                  | System.Windows.Forms.AnchorStyles.Left)
    136136                  | System.Windows.Forms.AnchorStyles.Right)));
    137       this.resultsGroupBox.Controls.Add(this.refreshButton);
     137      this.resultsGroupBox.Controls.Add(this.nrOfRunsButton);
     138      this.resultsGroupBox.Controls.Add(this.refreshResultsButton);
    138139      this.resultsGroupBox.Controls.Add(this.runCollectionView);
    139140      this.resultsGroupBox.Controls.Add(this.showRunsButton);
     
    145146      this.resultsGroupBox.Text = "Results";
    146147      //
    147       // andFilterView
     148      // nrOfRunsButton
    148149      //
    149       this.andFilterView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     150      this.nrOfRunsButton.Location = new System.Drawing.Point(117, 19);
     151      this.nrOfRunsButton.Name = "nrOfRunsButton";
     152      this.nrOfRunsButton.Size = new System.Drawing.Size(75, 23);
     153      this.nrOfRunsButton.TabIndex = 3;
     154      this.nrOfRunsButton.Text = "No. of Runs";
     155      this.nrOfRunsButton.UseVisualStyleBackColor = true;
     156      this.nrOfRunsButton.Click += new System.EventHandler(this.nrOfRunsButton_Click);
     157      //
     158      // filterPanel
     159      //
     160      this.filterPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    150161                  | System.Windows.Forms.AnchorStyles.Left)
    151162                  | System.Windows.Forms.AnchorStyles.Right)));
    152       this.andFilterView.Caption = "AndFilter View";
    153       this.andFilterView.Content = null;
    154       this.andFilterView.Location = new System.Drawing.Point(6, 19);
    155       this.andFilterView.Name = "andFilterView";
    156       this.andFilterView.ReadOnly = false;
    157       this.andFilterView.Size = new System.Drawing.Size(722, 189);
    158       this.andFilterView.TabIndex = 0;
     163      this.filterPanel.Location = new System.Drawing.Point(6, 19);
     164      this.filterPanel.Name = "filterPanel";
     165      this.filterPanel.Size = new System.Drawing.Size(722, 189);
     166      this.filterPanel.TabIndex = 0;
    159167      //
    160168      // QueryView
     
    177185    #endregion
    178186
    179     private System.Windows.Forms.Button refreshButton;
     187    private System.Windows.Forms.Button refreshResultsButton;
    180188    private System.Windows.Forms.ToolTip toolTip;
    181189    private RunCollectionView runCollectionView;
     
    184192    private System.Windows.Forms.GroupBox filtersGroupBox;
    185193    private System.Windows.Forms.GroupBox resultsGroupBox;
    186     private AndFilterView andFilterView;
     194    private System.Windows.Forms.Button nrOfRunsButton;
     195    private System.Windows.Forms.Panel filterPanel;
    187196
    188197  }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/QueryView.cs

    r5286 r5295  
    2727
    2828namespace HeuristicLab.Clients.OKB {
    29   [View("OKB Administrator")]
     29  [View("OKB Query")]
    3030  [Content(typeof(OKBClient), false)]
    3131  public sealed partial class QueryView : HeuristicLab.MainForm.WindowsForms.View {
     32    private AndFilterView andFilterView;
     33
    3234    public QueryView() {
    3335      InitializeComponent();
     
    3638    protected override void OnInitialized(EventArgs e) {
    3739      base.OnInitialized(e);
    38       AndFilter filter = OKBClient.Instance.GetFilters().OfType<AndFilter>().FirstOrDefault();
    39       if (filter != null) andFilterView.Content = filter.Clone() as AndFilter;
    40       runCollectionView.Content = null;
     40      this.Cursor = Cursors.AppStarting;
     41
     42      Func<AndFilter> func = () => {
     43        return OKBClient.Instance.GetFilters().OfType<AndFilter>().FirstOrDefault();
     44      };
     45
     46      func.BeginInvoke((IAsyncResult result) => {
     47        AndFilter filter = func.EndInvoke(result);
     48        if (InvokeRequired) Invoke(new Action<AndFilter>(FinishedLoadingAndFilter), filter);
     49        else FinishedLoadingAndFilter(filter);
     50      }, null);
    4151    }
    4252
    43     private void refreshButton_Click(object sender, EventArgs e) {
     53    private void FinishedLoadingAndFilter(AndFilter filter) {
     54      if (filter != null) {
     55        andFilterView = (AndFilterView)MainFormManager.CreateView(typeof(AndFilterView));
     56        andFilterView.Content = (AndFilter)filter.Clone();
     57        Control control = (Control)andFilterView;
     58        control.Dock = DockStyle.Fill;
     59        filterPanel.Controls.Add(control);
     60      }
     61      this.Cursor = Cursors.Default;
     62      SetEnabledStateOfControls();
     63    }
     64
     65    protected override void SetEnabledStateOfControls() {
     66      base.SetEnabledStateOfControls();
     67      resultsGroupBox.Enabled = andFilterView != null;
     68      showRunsButton.Enabled = (runCollectionView.Content != null) && (runCollectionView.Content.Count > 0);
     69    }
     70
     71    private void refreshResultsButton_Click(object sender, EventArgs e) {
     72      DateTime start = DateTime.Now;
    4473      runCollectionView.Content = OKBClient.Instance.QueryRuns(andFilterView.Content);
     74      MessageBox.Show((DateTime.Now - start).ToString());
     75      SetEnabledStateOfControls();
    4576    }
    4677
    4778    private void showRunsButton_Click(object sender, EventArgs e) {
     79      DateTime start = DateTime.Now;
    4880      MainFormManager.MainForm.ShowContent(OKBClient.Instance.ConvertOKBRunsToOptimizationRuns(runCollectionView.Content));
     81      MessageBox.Show((DateTime.Now - start).ToString());
     82    }
     83
     84    private void nrOfRunsButton_Click(object sender, EventArgs e) {
     85      long runs = OKBClient.Instance.QueryNumberOfRuns(andFilterView.Content);
     86      MessageBox.Show(runs.ToString());
    4987    }
    5088  }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/RunView.Designer.cs

    r4943 r5295  
    4848      this.randomSeedLabel = new System.Windows.Forms.Label();
    4949      this.randomSeedTextBox = new System.Windows.Forms.TextBox();
    50       this.finishedDateLabel = new System.Windows.Forms.Label();
    51       this.finishedDateTextBox = new System.Windows.Forms.TextBox();
     50      this.createdDateLabel = new System.Windows.Forms.Label();
     51      this.createdDateTextBox = new System.Windows.Forms.TextBox();
    5252      this.resultsListView = new System.Windows.Forms.ListView();
    5353      this.nameColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     
    8181      this.randomSeedTextBox.TabIndex = 1;
    8282      //
    83       // finishedDateLabel
    84       //
    85       this.finishedDateLabel.AutoSize = true;
    86       this.finishedDateLabel.Location = new System.Drawing.Point(3, 29);
    87       this.finishedDateLabel.Name = "finishedDateLabel";
    88       this.finishedDateLabel.Size = new System.Drawing.Size(75, 13);
    89       this.finishedDateLabel.TabIndex = 2;
    90       this.finishedDateLabel.Text = "Finished Date:";
    91       //
    92       // finishedDateTextBox
    93       //
    94       this.finishedDateTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    95                   | System.Windows.Forms.AnchorStyles.Right)));
    96       this.finishedDateTextBox.Location = new System.Drawing.Point(87, 26);
    97       this.finishedDateTextBox.Name = "finishedDateTextBox";
    98       this.finishedDateTextBox.ReadOnly = true;
    99       this.finishedDateTextBox.Size = new System.Drawing.Size(426, 20);
    100       this.finishedDateTextBox.TabIndex = 3;
     83      // createdDateLabel
     84      //
     85      this.createdDateLabel.AutoSize = true;
     86      this.createdDateLabel.Location = new System.Drawing.Point(3, 29);
     87      this.createdDateLabel.Name = "createdDateLabel";
     88      this.createdDateLabel.Size = new System.Drawing.Size(75, 13);
     89      this.createdDateLabel.TabIndex = 2;
     90      this.createdDateLabel.Text = "Created Date:";
     91      //
     92      // createdDateTextBox
     93      //
     94      this.createdDateTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     95                  | System.Windows.Forms.AnchorStyles.Right)));
     96      this.createdDateTextBox.Location = new System.Drawing.Point(87, 26);
     97      this.createdDateTextBox.Name = "createdDateTextBox";
     98      this.createdDateTextBox.ReadOnly = true;
     99      this.createdDateTextBox.Size = new System.Drawing.Size(426, 20);
     100      this.createdDateTextBox.TabIndex = 3;
    101101      //
    102102      // resultsListView
     
    195195      this.Controls.Add(this.clientTextBox);
    196196      this.Controls.Add(this.userTextBox);
    197       this.Controls.Add(this.finishedDateTextBox);
     197      this.Controls.Add(this.createdDateTextBox);
    198198      this.Controls.Add(this.randomSeedTextBox);
    199199      this.Controls.Add(this.clientLabel);
    200200      this.Controls.Add(this.userLabel);
    201       this.Controls.Add(this.finishedDateLabel);
     201      this.Controls.Add(this.createdDateLabel);
    202202      this.Controls.Add(this.randomSeedLabel);
    203203      this.Name = "RunView";
     
    213213    private System.Windows.Forms.Label randomSeedLabel;
    214214    private System.Windows.Forms.TextBox randomSeedTextBox;
    215     private System.Windows.Forms.Label finishedDateLabel;
    216     private System.Windows.Forms.TextBox finishedDateTextBox;
     215    private System.Windows.Forms.Label createdDateLabel;
     216    private System.Windows.Forms.TextBox createdDateTextBox;
    217217    private System.Windows.Forms.ListView resultsListView;
    218218    private System.Windows.Forms.ColumnHeader nameColumnHeader;
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/RunView.cs

    r4943 r5295  
    4848      if (Content == null) {
    4949        randomSeedTextBox.Text = string.Empty;
    50         finishedDateTextBox.Text = string.Empty;
     50        createdDateTextBox.Text = string.Empty;
    5151        userTextBox.Text = string.Empty;
    5252        clientTextBox.Text = string.Empty;
    5353      } else {
    5454        randomSeedTextBox.Text = Content.RandomSeed.ToString();
    55         finishedDateTextBox.Text = Content.FinishedDate.ToString();
     55        createdDateTextBox.Text = Content.CreatedDate.ToString();
    5656        userTextBox.Text = Content.UserId.ToString();
    5757        clientTextBox.Text = Content.ClientId.ToString();
     
    6363      base.SetEnabledStateOfControls();
    6464      randomSeedTextBox.Enabled = Content != null;
    65       finishedDateTextBox.Enabled = Content != null;
     65      createdDateTextBox.Enabled = Content != null;
    6666      userTextBox.Enabled = Content != null;
    6767      clientTextBox.Enabled = Content != null;
Note: See TracChangeset for help on using the changeset viewer.