Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/29/19 11:20:22 (5 years ago)
Author:
gkronber
Message:

#2520: Use ContentManager in Clipboard and StartPage. Show info when objects cannot be restored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Optimizer/3.3/StartPage.cs

    r16565 r16992  
    3030using HeuristicLab.Core;
    3131using HeuristicLab.MainForm;
    32 using HeuristicLab.Persistence.Default.Xml;
    3332
    3433namespace HeuristicLab.Optimizer {
     
    121120        using (var stream = assembly.GetManifestResourceStream(name)) {
    122121          WriteStreamToTempFile(stream, path); // create a file in a temporary folder (persistence cannot load these files directly from the stream)
    123           var item = XmlParser.Deserialize<INamedItem>(path);
     122          var item = (INamedItem)ContentManager.Load(path);
    124123          OnSampleLoaded(item, group, 1.0 / count);
    125124        }
Note: See TracChangeset for help on using the changeset viewer.