Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/18/12 11:00:27 (12 years ago)
Author:
abeham
Message:

#1782:

  • Changed tooltip generation in ProblemInstanceConsumerViewGeneric (typeof(T).Name doesn't work, because T doesn't change miraculously when the selected provider changes). The current solution might not be optimal, maybe include another property "FileFormat" in IProblemInstanceProvider that can then be TSPLIB, QAPLIB, CSV, etc.
  • Set instances combobox to not display a selected instance initially and disabled button in this case. If that still doesn't reduce the confusion, then I think we have to add problem loading on selected index change and do away with the button.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs

    r7956 r8031  
    6565        ShowInstanceLoad(dataDescriptors.Count() > 0);
    6666        instancesComboBox.DataSource = dataDescriptors;
     67        instancesComboBox.SelectedIndex = -1;
    6768      }
    6869    }
     
    8384      base.SetEnabledStateOfControls();
    8485      instancesComboBox.Enabled = !ReadOnly && !Locked && Content != null && GenericConsumer != null;
    85       loadButton.Enabled = !ReadOnly && !Locked && Content != null && GenericConsumer != null;
     86      loadButton.Enabled = !ReadOnly && !Locked && Content != null && GenericConsumer != null && instancesComboBox.SelectedIndex >= 0;
    8687    }
    8788
     
    102103        comboBox.Items.Clear();
    103104    }
     105
     106    private void instancesComboBox_SelectedIndexChanged(object sender, System.EventArgs e) {
     107      SetEnabledStateOfControls();
     108    }
    104109  }
    105110}
Note: See TracChangeset for help on using the changeset viewer.