Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9603 for branches/Robocode


Ignore:
Timestamp:
06/10/13 17:38:07 (11 years ago)
Author:
ascheibe
Message:

#2069 fixed object disposed exception in CodeNodeView that occurred when switching the viewhost

Location:
branches/Robocode/HeuristicLab.Problems.Robocode/Symbols
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/Robocode/HeuristicLab.Problems.Robocode/Symbols/CodeNodeView.Designer.cs

    r9565 r9603  
    2929        private void InitializeComponent()
    3030        {
    31             this.prefixCode = new System.Windows.Forms.TextBox();
    32             this.prefixLabel = new System.Windows.Forms.Label();
    33             this.suffixLabel = new System.Windows.Forms.Label();
    34             this.suffixCode = new System.Windows.Forms.TextBox();
    35             ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    36             this.SuspendLayout();
    37             //
    38             // initialFrequencyLabel
    39             //
    40             //this.toolTip.SetToolTip(this.initialFrequencyLabel, "Relative frequency of the symbol in randomly created trees");
    41             ////
    42             //// initialFrequencyTextBox
    43             ////
    44             //this.errorProvider.SetIconAlignment(this.initialFrequencyTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    45             ////
    46             //// minimumArityLabel
    47             ////
    48             //this.toolTip.SetToolTip(this.minimumArityLabel, "The minimum arity of the symbol");
    49             ////
    50             //// maximumArityLabel
    51             ////
    52             //this.toolTip.SetToolTip(this.maximumArityLabel, "The maximum arity of the symbol");
    53             ////
    54             //// minimumArityTextBox
    55             ////
    56             //this.errorProvider.SetIconAlignment(this.minimumArityTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    57             ////
    58             //// maximumArityTextBox
    59             ////
    60             //this.errorProvider.SetIconAlignment(this.maximumArityTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    61             //
    62             // nameTextBox
    63             //
    64             this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    65             this.errorProvider.SetIconPadding(this.nameTextBox, 2);
    66             this.nameTextBox.Visible = false;
    67             //
    68             // nameLabel
    69             //
    70             this.nameLabel.Visible = false;
    71             //
    72             // infoLabel
    73             //
    74             this.infoLabel.Visible = false;
    75             //
    76             // prefixCode
    77             //
    78             this.prefixCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    79             | System.Windows.Forms.AnchorStyles.Right)));
    80             this.prefixCode.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    81             this.prefixCode.Location = new System.Drawing.Point(6, 19);
    82             this.prefixCode.Multiline = true;
    83             this.prefixCode.Name = "prefixCode";
    84             this.prefixCode.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
    85             this.prefixCode.Size = new System.Drawing.Size(333, 93);
    86             this.prefixCode.TabIndex = 3;
    87             this.prefixCode.Leave += new System.EventHandler(this.prefixCode_Leave);
    88             //
    89             // prefixLabel
    90             //
    91             this.prefixLabel.AutoSize = true;
    92             this.prefixLabel.Location = new System.Drawing.Point(3, 3);
    93             this.prefixLabel.Name = "prefixLabel";
    94             this.prefixLabel.Size = new System.Drawing.Size(35, 13);
    95             this.prefixLabel.TabIndex = 4;
    96             this.prefixLabel.Text = "Prefix";
    97             //
    98             // suffixLabel
    99             //
    100             this.suffixLabel.AutoSize = true;
    101             this.suffixLabel.Location = new System.Drawing.Point(6, 115);
    102             this.suffixLabel.Name = "suffixLabel";
    103             this.suffixLabel.Size = new System.Drawing.Size(35, 13);
    104             this.suffixLabel.TabIndex = 5;
    105             this.suffixLabel.Text = "Suffix";
    106             //
    107             // suffixCode
    108             //
    109             this.suffixCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    110             | System.Windows.Forms.AnchorStyles.Right)));
    111             this.suffixCode.Location = new System.Drawing.Point(6, 131);
    112             this.suffixCode.Multiline = true;
    113             this.suffixCode.Name = "suffixCode";
    114             this.suffixCode.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
    115             this.suffixCode.Size = new System.Drawing.Size(333, 87);
    116             this.suffixCode.TabIndex = 6;
    117             this.suffixCode.Leave += new System.EventHandler(this.suffixCode_Leave);
    118             //
    119             // CodeNodeView
    120             //
    121             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    122             this.Controls.Add(this.suffixCode);
    123             this.Controls.Add(this.suffixLabel);
    124             this.Controls.Add(this.prefixLabel);
    125             this.Controls.Add(this.prefixCode);
    126             this.Name = "CodeNodeView";
    127             this.Size = new System.Drawing.Size(351, 238);
    128             //this.Controls.SetChildIndex(this.enabledCheckBox, 0);
    129             //this.Controls.SetChildIndex(this.initialFrequencyLabel, 0);
    130             //this.Controls.SetChildIndex(this.initialFrequencyTextBox, 0);
    131             //this.Controls.SetChildIndex(this.maximumArityLabel, 0);
    132             //this.Controls.SetChildIndex(this.maximumArityTextBox, 0);
    133             //this.Controls.SetChildIndex(this.minimumArityLabel, 0);
    134             //this.Controls.SetChildIndex(this.minimumArityTextBox, 0);
    135             this.Controls.SetChildIndex(this.nameLabel, 0);
    136             this.Controls.SetChildIndex(this.nameTextBox, 0);
    137             this.Controls.SetChildIndex(this.infoLabel, 0);
    138             this.Controls.SetChildIndex(this.prefixCode, 0);
    139             this.Controls.SetChildIndex(this.prefixLabel, 0);
    140             this.Controls.SetChildIndex(this.suffixLabel, 0);
    141             this.Controls.SetChildIndex(this.suffixCode, 0);
    142             ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
    143             this.ResumeLayout(false);
    144             this.PerformLayout();
     31          this.prefixCode = new System.Windows.Forms.TextBox();
     32          this.prefixLabel = new System.Windows.Forms.Label();
     33          this.suffixLabel = new System.Windows.Forms.Label();
     34          this.suffixCode = new System.Windows.Forms.TextBox();
     35          ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
     36          this.SuspendLayout();
     37          //
     38          // nameTextBox
     39          //
     40          this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
     41          this.errorProvider.SetIconPadding(this.nameTextBox, 2);
     42          this.nameTextBox.Visible = false;
     43          //
     44          // nameLabel
     45          //
     46          this.nameLabel.Visible = false;
     47          //
     48          // infoLabel
     49          //
     50          this.infoLabel.Visible = false;
     51          //
     52          // prefixCode
     53          //
     54          this.prefixCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     55                      | System.Windows.Forms.AnchorStyles.Right)));
     56          this.prefixCode.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     57          this.prefixCode.Location = new System.Drawing.Point(6, 19);
     58          this.prefixCode.Multiline = true;
     59          this.prefixCode.Name = "prefixCode";
     60          this.prefixCode.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     61          this.prefixCode.Size = new System.Drawing.Size(333, 93);
     62          this.prefixCode.TabIndex = 3;
     63          this.prefixCode.Validated += new System.EventHandler(this.prefixCode_Validated);
     64          //
     65          // prefixLabel
     66          //
     67          this.prefixLabel.AutoSize = true;
     68          this.prefixLabel.Location = new System.Drawing.Point(3, 3);
     69          this.prefixLabel.Name = "prefixLabel";
     70          this.prefixLabel.Size = new System.Drawing.Size(33, 13);
     71          this.prefixLabel.TabIndex = 4;
     72          this.prefixLabel.Text = "Prefix";
     73          //
     74          // suffixLabel
     75          //
     76          this.suffixLabel.AutoSize = true;
     77          this.suffixLabel.Location = new System.Drawing.Point(6, 115);
     78          this.suffixLabel.Name = "suffixLabel";
     79          this.suffixLabel.Size = new System.Drawing.Size(33, 13);
     80          this.suffixLabel.TabIndex = 5;
     81          this.suffixLabel.Text = "Suffix";
     82          //
     83          // suffixCode
     84          //
     85          this.suffixCode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     86                      | System.Windows.Forms.AnchorStyles.Right)));
     87          this.suffixCode.Location = new System.Drawing.Point(6, 131);
     88          this.suffixCode.Multiline = true;
     89          this.suffixCode.Name = "suffixCode";
     90          this.suffixCode.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
     91          this.suffixCode.Size = new System.Drawing.Size(333, 87);
     92          this.suffixCode.TabIndex = 6;
     93          this.suffixCode.Validated += new System.EventHandler(this.suffixCode_Validated);
     94          //
     95          // CodeNodeView
     96          //
     97          this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
     98          this.Controls.Add(this.suffixCode);
     99          this.Controls.Add(this.suffixLabel);
     100          this.Controls.Add(this.prefixLabel);
     101          this.Controls.Add(this.prefixCode);
     102          this.Name = "CodeNodeView";
     103          this.Size = new System.Drawing.Size(351, 238);
     104          this.Controls.SetChildIndex(this.nameLabel, 0);
     105          this.Controls.SetChildIndex(this.nameTextBox, 0);
     106          this.Controls.SetChildIndex(this.infoLabel, 0);
     107          this.Controls.SetChildIndex(this.prefixCode, 0);
     108          this.Controls.SetChildIndex(this.prefixLabel, 0);
     109          this.Controls.SetChildIndex(this.suffixLabel, 0);
     110          this.Controls.SetChildIndex(this.suffixCode, 0);
     111          ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
     112          this.ResumeLayout(false);
     113          this.PerformLayout();
    145114
    146115        }
  • branches/Robocode/HeuristicLab.Problems.Robocode/Symbols/CodeNodeView.cs

    r9601 r9603  
    1717      : base() {
    1818      InitializeComponent();
    19       //this.prefixCode.Text = Content.Prefix;
    20       //this.suffixCode.Text = Content.Suffix;
    2119    }
    2220
     
    2927        this.prefixCode.Text = Content.Prefix;
    3028        this.suffixCode.Text = Content.Suffix;
    31         //Content.Prefix = this.prefixCode.Text;
    32         //Content.Suffix = this.suffixCode.Text;
    3329      }
    3430    }
    3531
    36     private void prefixCode_Leave(object sender, EventArgs e) {
    37       Content.Prefix = this.prefixCode.Text;
     32    private void suffixCode_Validated(object sender, EventArgs e) {
     33      Content.Suffix = this.suffixCode.Text;
    3834    }
    3935
    40     private void suffixCode_Leave(object sender, EventArgs e) {
    41       Content.Suffix = this.suffixCode.Text;
     36    private void prefixCode_Validated(object sender, EventArgs e) {
     37      Content.Prefix = this.prefixCode.Text;
    4238    }
    4339  }
  • branches/Robocode/HeuristicLab.Problems.Robocode/Symbols/CodeNodeView.resx

    r9565 r9603  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </resheader>
    120   <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    121     <value>140, 17</value>
     120  <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     121    <value>107, 17</value>
    122122  </metadata>
    123123  <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     124    <value>107, 17</value>
     125  </metadata>
     126  <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    124127    <value>17, 17</value>
    125128  </metadata>
    126   <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    127     <value>17, 17</value>
    128   </metadata>
    129   <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    130     <value>140, 17</value>
    131   </metadata>
    132129</root>
Note: See TracChangeset for help on using the changeset viewer.