Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9972 for branches


Ignore:
Timestamp:
09/16/13 16:14:28 (11 years ago)
Author:
ascheibe
Message:

#2069 improved EnemyCollectionView

Location:
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode.Views/3.3/EnemyCollectionView.Designer.cs

    r9971 r9972  
    4646    /// </summary>
    4747    private void InitializeComponent() {
    48       this.checkedItemListView = new Core.Views.CheckedItemListView<HeuristicLab.Data.StringValue>();
    4948      this.reloadButton = new System.Windows.Forms.Button();
    5049      this.SuspendLayout();
    5150      //
    52       // checkedItemListView
    53       //
    54       this.checkedItemListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    55             | System.Windows.Forms.AnchorStyles.Left)
    56             | System.Windows.Forms.AnchorStyles.Right)));
    57       this.checkedItemListView.Caption = "View";
    58       this.checkedItemListView.Content = null;
    59       this.checkedItemListView.Location = new System.Drawing.Point(3, 34);
    60       this.checkedItemListView.Name = "checkedItemListView";
    61       this.checkedItemListView.ReadOnly = false;
    62       this.checkedItemListView.Size = new System.Drawing.Size(434, 238);
    63       this.checkedItemListView.TabIndex = 0;
    64       //
    6551      // reloadButton
    6652      //
    67       this.reloadButton.Location = new System.Drawing.Point(0, 3);
     53      this.reloadButton.Location = new System.Drawing.Point(151, 3);
    6854      this.reloadButton.Name = "reloadButton";
    6955      this.reloadButton.Size = new System.Drawing.Size(24, 24);
     
    7763      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    7864      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    79       this.Controls.Add(this.reloadButton);
    80       this.Controls.Add(this.checkedItemListView);
     65      splitContainer.Panel1.Controls.Add(this.reloadButton);
    8166      this.Name = "EnemyCollectionView";
    8267      this.Size = new System.Drawing.Size(440, 275);
     
    8772    #endregion
    8873
    89     private Core.Views.CheckedItemListView<HeuristicLab.Data.StringValue> checkedItemListView;
    9074    private System.Windows.Forms.Button reloadButton;
    91 
    9275  }
    9376}
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode.Views/3.3/EnemyCollectionView.cs

    r9971 r9972  
    2121
    2222using System.Windows.Forms;
    23 using HeuristicLab.Core.Views;
    2423using HeuristicLab.MainForm;
    2524
     
    2726  [View("EnemyCollection View")]
    2827  [Content(typeof(EnemyCollection), true)]
    29   public partial class EnemyCollectionView : ItemView {
     28  public partial class EnemyCollectionView : Core.Views.CheckedItemListView<HeuristicLab.Data.StringValue> {
    3029    public new EnemyCollection Content {
    3130      get { return (EnemyCollection)base.Content; }
     
    3534    public EnemyCollectionView() {
    3635      InitializeComponent();
    37     }
    38 
    39     protected override void OnContentChanged() {
    40       base.OnContentChanged();
    41 
    42       checkedItemListView.Content = Content;
    4336    }
    4437
Note: See TracChangeset for help on using the changeset viewer.