Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/12/14 03:02:33 (10 years ago)
Author:
swagner
Message:

#2205: Small UI tweaks and bug fixes

Location:
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/MessagePortView.Designer.cs

    r11538 r11539  
    180180      // lastMessageView
    181181      //
     182      this.lastMessageView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     183            | System.Windows.Forms.AnchorStyles.Left)
     184            | System.Windows.Forms.AnchorStyles.Right)));
    182185      this.lastMessageView.Caption = "Message View";
    183186      this.lastMessageView.Content = null;
    184       this.lastMessageView.Dock = System.Windows.Forms.DockStyle.Fill;
    185       this.lastMessageView.Location = new System.Drawing.Point(3, 16);
     187      this.lastMessageView.Location = new System.Drawing.Point(6, 19);
    186188      this.lastMessageView.Name = "lastMessageView";
    187189      this.lastMessageView.ReadOnly = true;
    188       this.lastMessageView.Size = new System.Drawing.Size(639, 194);
     190      this.lastMessageView.Size = new System.Drawing.Size(633, 188);
    189191      this.lastMessageView.TabIndex = 0;
    190192      //
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/MessagePortView.cs

    r11538 r11539  
    8080      clearConnectedPortButton.Enabled = Content != null && Content.ConnectedPort != null && !ReadOnly;
    8181      portParameterCollectionView.Enabled = Content != null && !ReadOnly;
    82       cloneParametersFromPortButton.Enabled = Content != null && Content.ConnectedPort != null && !ReadOnly;
     82      cloneParametersFromPortButton.Enabled = Content != null && !Content.Parameters.IsReadOnly && !ReadOnly;
    8383      lastMessageView.Enabled = Content != null && !ReadOnly;
    8484    }
     
    8989      else {
    9090        clearConnectedPortButton.Enabled = Content.ConnectedPort != null && !ReadOnly;
    91         cloneParametersFromPortButton.Enabled = Content.ConnectedPort != null && !ReadOnly;
    9291        connectedPortView.Content = Content.ConnectedPort;
    9392      }
     
    163162      networkItemSelectorDialog.NetworkItemSelector.Configure(
    164163        root,
    165         null,
     164        Content,
    166165        typeof(IParameterizedPort)
    167166      );
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/UserDefinedMessagePortView.cs

    r11530 r11539  
    4141      portParameterCollectionView.Content = Content == null ? null : Content.Parameters;
    4242    }
     43
     44    protected override void SetEnabledStateOfControls() {
     45      base.SetEnabledStateOfControls();
     46      cloneParametersFromPortButton.Enabled = Content != null && !ReadOnly;
     47    }
    4348  }
    4449}
Note: See TracChangeset for help on using the changeset viewer.