Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/14/19 08:05:26 (6 years ago)
Author:
gkronber
Message:

#2971: merged r16658 from trunk to branch

Location:
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views

  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs

    r16638 r16685  
    2525using System.Linq;
    2626using System.Windows.Forms;
     27using HEAL.Attic;
    2728using HeuristicLab.Core;
    2829using HeuristicLab.Core.Views;
    2930using HeuristicLab.MainForm;
    3031using HeuristicLab.Optimization;
    31 using HeuristicLab.Persistence.Default.Xml;
    3232using HeuristicLab.PluginInfrastructure;
    3333
     
    126126      if (loadProblemDataFileDialog.ShowDialog(this) != DialogResult.OK) return;
    127127      try {
    128         object hlFile = XmlParser.Deserialize(loadProblemDataFileDialog.FileName);
     128        var ser = new ProtoBufSerializer();
     129        object hlFile = ser.Deserialize(loadProblemDataFileDialog.FileName);
    129130
    130131        IDataAnalysisProblemData problemData = null;
     
    145146          solution.Name += " with loaded problemData";
    146147        MainFormManager.MainForm.ShowContent(solution);
    147       }
    148       catch (InvalidOperationException invalidOperationException) {
     148      } catch (InvalidOperationException invalidOperationException) {
    149149        ErrorHandling.ShowErrorDialog(this, invalidOperationException);
    150       }
    151       catch (ArgumentException argumentException) {
     150      } catch (ArgumentException argumentException) {
    152151        ErrorHandling.ShowErrorDialog(this, argumentException);
    153152      }
     
    235234        Content.Filename = string.Empty;
    236235        MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().UpdateTitle();
    237       }
    238       catch (InvalidOperationException invalidOperationException) {
     236      } catch (InvalidOperationException invalidOperationException) {
    239237        ErrorHandling.ShowErrorDialog(this, invalidOperationException);
    240       }
    241       catch (ArgumentException argumentException) {
     238      } catch (ArgumentException argumentException) {
    242239        ErrorHandling.ShowErrorDialog(this, argumentException);
    243240      }
Note: See TracChangeset for help on using the changeset viewer.