Changeset 7665 for branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/ProblemInstanceProviderView.cs
- Timestamp:
- 03/27/12 13:31:44 (13 years ago)
- Location:
- branches/ProblemInstancesRegressionAndClassification
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification
- Property svn:ignore
-
old new 3 3 protoc.exe 4 4 ProtoGen.exe 5 bin
-
- Property svn:ignore
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4
-
Property
svn:ignore
set to
bin
HeuristicLab.Problems.Instances.Views-3.4.csproj.user
obj
-
Property
svn:ignore
set to
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/ProblemInstanceProviderView.cs
r7664 r7665 68 68 protected override void SetEnabledStateOfControls() { 69 69 base.SetEnabledStateOfControls(); 70 instancesComboBox.Enabled = !ReadOnly && !Locked && Content != null && Content.Consumer != null; 71 loadButton.Enabled = !ReadOnly && !Locked && Content != null && Content.Consumer != null; 70 instancesComboBox.Enabled = !ReadOnly && !Locked && Content != null && Consumer != null; 71 loadButton.Enabled = !ReadOnly && !Locked && Content != null && Consumer != null; 72 exportButton.Enabled = !ReadOnly && !Locked && Content != null && Exporter != null; 73 problemInstanceProviderSplitContainer.Panel2Collapsed = !exportButton.Enabled; 72 74 } 73 75 … … 76 78 var instance = Content.LoadData(descriptor); 77 79 try { 78 Con tent.Consumer.Load(instance);80 Consumer.Load(instance); 79 81 } 80 82 catch (Exception ex) { … … 95 97 } 96 98 try { 97 Con tent.Consumer.Load(instance);99 Consumer.Load(instance); 98 100 } 99 101 catch (Exception ex) { … … 106 108 if (saveFileDialog.ShowDialog(this) == DialogResult.OK) { 107 109 try { 108 var descriptor = (IDataDescriptor)instancesComboBox.SelectedItem; 109 var instance = Content.LoadData(descriptor); 110 Content.SaveData(instance, saveFileDialog.FileName); 110 Content.SaveData(Exporter.Export(), saveFileDialog.FileName); 111 111 } 112 112 catch (Exception ex) {
Note: See TracChangeset
for help on using the changeset viewer.