Changeset 8206 for branches/GP-MoveOperators/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceConsumerViewGeneric.cs
- Timestamp:
- 07/03/12 16:46:35 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:mergeinfo changed
/trunk/sources merged: 8084,8088-8090,8092-8100,8102-8113,8115,8117-8132,8134-8146,8148-8156,8158-8160,8163-8170,8173-8176,8178-8190,8192-8205
- Property svn:mergeinfo changed
-
branches/GP-MoveOperators/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceConsumerViewGeneric.cs
r8031 r8206 92 92 problemInstanceProviderComboBox.Enabled = !ReadOnly && !Locked && Content != null && problemInstanceProviderComboBox.Items.Count > 0; 93 93 libraryInfoButton.Enabled = SelectedProvider != null && SelectedProvider.WebLink != null; 94 importButton.Enabled = !ReadOnly && !Locked && Content != null && Consumer != null; 95 exportButton.Enabled = !ReadOnly && !Locked && Content != null && Exporter != null; 96 problemInstanceProviderSplitContainer.Panel2Collapsed = !exportButton.Enabled; 94 importButton.Enabled = !ReadOnly && !Locked && Content != null && Consumer != null && 95 GenericSelectedProvider != null && GenericSelectedProvider.CanImportData; 96 ProviderImportSplitContainer.Panel2Collapsed = !importButton.Enabled; 97 exportButton.Enabled = !ReadOnly && !Locked && Content != null && Exporter != null && 98 GenericSelectedProvider != null && GenericSelectedProvider.CanExportData; 99 ProviderExportSplitContainer.Panel2Collapsed = !exportButton.Enabled; 97 100 } 98 101 … … 131 134 T instance = default(T); 132 135 try { 133 instance = GenericSelectedProvider. LoadData(openFileDialog.FileName);136 instance = GenericSelectedProvider.ImportData(openFileDialog.FileName); 134 137 } 135 138 catch (Exception ex) { … … 146 149 } 147 150 148 protected v oid exportButton_Click(object sender, EventArgs e) {151 protected virtual void exportButton_Click(object sender, EventArgs e) { 149 152 if (saveFileDialog.ShowDialog(this) == DialogResult.OK) { 150 153 try { 151 GenericSelectedProvider. SaveData(GenericExporter.Export(), saveFileDialog.FileName);154 GenericSelectedProvider.ExportData(GenericExporter.Export(), saveFileDialog.FileName); 152 155 } 153 156 catch (Exception ex) { … … 164 167 protected void SetTooltip() { 165 168 toolTip.SetToolTip(problemInstanceProviderComboBox, GetProviderToolTip()); 166 toolTip.SetToolTip(importButton, " Opena " + GetProblemType() + " problem from file.");169 toolTip.SetToolTip(importButton, "Import a " + GetProblemType() + " problem from file."); 167 170 toolTip.SetToolTip(exportButton, "Export currently loaded " + GetProblemType() + " problem to a file."); 168 171 if (SelectedProvider.WebLink != null)
Note: See TracChangeset
for help on using the changeset viewer.