Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7130 for trunk


Ignore:
Timestamp:
12/06/11 10:50:03 (13 years ago)
Author:
mkommend
Message:

#1624: Disabled add button and corrected drag & drop behavior in RunCollectionContentConstraintView.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionContentConstraintView.cs

    r6673 r7130  
    8282      public RunCollection RunCollection { get; set; }
    8383
     84      public RunSetView()
     85        : base() {
     86        addButton.Enabled = false;
     87      }
     88
     89      protected override void SetEnabledStateOfControls() {
     90        base.SetEnabledStateOfControls();
     91        addButton.Enabled = false;
     92      }
     93
    8494      protected override void itemsListView_DragEnter(object sender, DragEventArgs e) {
    8595        base.itemsListView_DragEnter(sender, e);
     
    93103      protected override void itemsListView_DragOver(object sender, DragEventArgs e) {
    94104        e.Effect = DragDropEffects.None;
    95         if (validDragOperation) {
     105        if (validDragOperation && !draggedItemsAlreadyContained) {
    96106          e.Effect = DragDropEffects.Link;
    97107        }
Note: See TracChangeset for help on using the changeset viewer.