Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/20/09 15:34:02 (15 years ago)
Author:
mkommend
Message:

refactored mainform (ticket #771)

Location:
branches/Mainform refactoring/HeuristicLab.MainForm/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Mainform refactoring/HeuristicLab.MainForm/3.2/Interfaces/IMainForm.cs

    r2426 r2443  
    3636
    3737    Type UserInterfaceItemType { get; }
    38     void ShowView(IView view);
     38    bool ShowView(IView view);  //return value indicates if a new form for the view is created
     39    void HideView(IView view);
    3940    void CloseView(IView view);
    4041    void CloseAllViews();
  • branches/Mainform refactoring/HeuristicLab.MainForm/3.2/MainFormManager.cs

    r2438 r2443  
    113113            if (t1.IsAssignableFrom(t2))
    114114              return 1;
    115             return -1;
     115            else if (t2.IsAssignableFrom(t1))
     116              return -1;
     117            else
     118              return 0;
    116119          }
    117120          );
     
    121124            throw new Exception("Could not determine which is the default view for type " + viewableType.ToString() + ".");
    122125        }
    123       }     
     126      }
    124127    }
    125128
Note: See TracChangeset for help on using the changeset viewer.