Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/20/10 05:10:22 (15 years ago)
Author:
swagner
Message:

Committing first results of the refactoring of HeuristicLab.Core and related plugins (#95)

Location:
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAllMenuItem.cs

    r2555 r2656  
    3434    public override void ActiveViewChanged(object sender, EventArgs e) {
    3535      var views = from v in MainFormManager.MainForm.Views
    36                   where v is IItemView
    37                   where CreatableAttribute.IsCreatable(((IItemView)v).Item.GetType())
     36                  where v is IObjectView
     37                  where CreatableAttribute.IsCreatable(((IObjectView)v).Object.GetType())
    3838                  select v;
    3939      ToolStripItem.Enabled = views.FirstOrDefault() != null;
  • trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAsMenuItem.cs

    r2546 r2656  
    3333    }
    3434    public override void ActiveViewChanged(object sender, EventArgs e) {
    35       IItemView activeView = MainFormManager.MainForm.ActiveView as IItemView;
    36       ToolStripItem.Enabled = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Item.GetType())));
     35      IObjectView activeView = MainFormManager.MainForm.ActiveView as IObjectView;
     36      ToolStripItem.Enabled = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Object.GetType())));
    3737    }
    3838
  • trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveMenuItem.cs

    r2546 r2656  
    3636    }
    3737    public override void ActiveViewChanged(object sender, EventArgs e) {
    38       IItemView activeView = MainFormManager.MainForm.ActiveView as IItemView;
    39       ToolStripItem.Enabled = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Item.GetType())));
     38      IObjectView activeView = MainFormManager.MainForm.ActiveView as IObjectView;
     39      ToolStripItem.Enabled = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Object.GetType())));
    4040    }
    4141
Note: See TracChangeset for help on using the changeset viewer.