Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/03/10 03:14:37 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on engines and algorithms
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs

    r2882 r2916  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Windows.Forms;
    2425using HeuristicLab.Common;
     
    5556      : this() {
    5657      Content = content;
     58    }
     59
     60    protected override void OnInitialized(EventArgs e) {
     61      // Set order of tab pages according to z order.
     62      // NOTE: This is required due to a bug in the VS designer.
     63      List<Control> tabPages = new List<Control>();
     64      for (int i = 0; i < tabControl.Controls.Count; i++) {
     65        tabPages.Add(tabControl.Controls[i]);
     66      }
     67      tabControl.Controls.Clear();
     68      foreach (Control control in tabPages)
     69        tabControl.Controls.Add(control);
     70
     71      base.OnInitialized(e);
    5772    }
    5873
Note: See TracChangeset for help on using the changeset viewer.