Closed HeuristicLab-Trac-Bot closed 13 years ago
Implemented
ShowContent
method inMainForm
which reuses existing views and adapted theClipBoard
with r5270.
Corrected check in setter of
ViewType
in theViewHost
with r5278.
I reviewed r5270.
I made some attempts in thinking about a ShowContent<T, U> where T : class,IContent where U : class,IContentView. However that's not so easy in the case no existing view can be found. Since U can be an interface, one would be required to check for a view for the content's type which typeof(U) is also assignable from.
Anyway since the view is returned to the caller, the check can be made there if that was the required view.
I'm forwarding this to swagner for reviewing the change r5278 and the change to the Clipboard.
Replying to [comment:5 swagner]:
I think line 113 of
ViewHost
in r5278 should beif (value !# null && value= typeof(ViewHost))
and not
if (value !# null && value.GetType()= typeof(ViewHost))
Apart from that I agree with the changes of r5270 and r5278. Thanks.
The check was corrected as suggested in r5318.
Issue migrated from trac ticket # 1372
milestone: HeuristicLab 3.3.3 | component: MainForm.WindowsForms | priority: medium | resolution: done
2011-01-11 10:48:52: @mkommend created the issue