Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/07/09 02:44:23 (14 years ago)
Author:
swagner
Message:

Continued work on Optimizer and on adapting all views to the new MainForm concept (#770)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/ScopeView.cs

    r2520 r2546  
    3636  /// </summary>
    3737  [Content(typeof(Scope), true)]
    38   public partial class ScopeView : ViewBase {
     38  public partial class ScopeView : ItemViewBase {
    3939    private Dictionary<IScope, TreeNode> scopeNodeTable;
    4040    private Dictionary<IScope, bool> scopeExpandedTable;
     
    133133      if(scopesTreeView.SelectedNode != null && scopesTreeView.SelectedNode.Tag != null) {
    134134        IScope scope = (IScope)scopesTreeView.SelectedNode.Tag;
    135         PluginManager.ControlManager.ShowControl(new VariablesScopeView(scope));
     135        MainFormManager.MainForm.ShowView(new VariablesScopeView(scope));
    136136      }
    137137    }
     
    201201    private void variablesToolStripMenuItem_Click(object sender, EventArgs e) {
    202202      IScope scope = (IScope)scopesTreeView.SelectedNode.Tag;
    203       PluginManager.ControlManager.ShowControl(new VariablesScopeView(scope));
     203      MainFormManager.MainForm.ShowView(new VariablesScopeView(scope));
    204204    }
    205205    private void showViewToolStripMenuItem_Click(object sender, EventArgs e) {
    206206      IItem item = (IItem)((ToolStripMenuItem)sender).Tag;
    207       PluginManager.ControlManager.ShowControl((IControl)MainFormManager.CreateDefaultView(item));
     207      IView view = MainFormManager.CreateDefaultView(item);
     208      if (view != null) MainFormManager.MainForm.ShowView(view);
    208209    }
    209210    #endregion
Note: See TracChangeset for help on using the changeset viewer.