Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/10 23:44:47 (14 years ago)
Author:
swagner
Message:

Enabled saving of all items instead of just those for which the CreatableAttribute is set (#896)

File:
1 edited

Legend:

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

    r2958 r2960  
    103103    public static void Save() {
    104104      IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView;
    105       if ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Content.GetType()))) {
     105      if (activeView != null) {
    106106        Save(activeView);
    107107      }
     
    120120    public static void SaveAs() {
    121121      IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView;
    122       if ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Content.GetType()))) {
     122      if (activeView != null) {
    123123        SaveAs(activeView);
    124124      }
     
    156156      var views = from v in MainFormManager.MainForm.Views
    157157                  where v is IContentView
    158                   where CreatableAttribute.IsCreatable(((IContentView)v).Content.GetType())
    159158                  select v as IContentView;
    160159
Note: See TracChangeset for help on using the changeset viewer.