Changeset 4522 for trunk/sources/HeuristicLab.Parameters.Views
- Timestamp:
- 09/27/10 16:45:31 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Parameters.Views/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.Designer.cs
r4477 r4522 88 88 // valueGroupBox 89 89 // 90 this.valueGroupBox.AllowDrop = true; 90 91 this.valueGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 91 92 | System.Windows.Forms.AnchorStyles.Left) … … 101 102 this.valueGroupBox.TabStop = false; 102 103 this.valueGroupBox.Text = "Value"; 104 this.valueGroupBox.DragDrop += new System.Windows.Forms.DragEventHandler(this.valueGroupBox_DragDrop); 105 this.valueGroupBox.DragEnter += new System.Windows.Forms.DragEventHandler(this.valueGroupBox_DragEnterOver); 106 this.valueGroupBox.DragOver += new System.Windows.Forms.DragEventHandler(this.valueGroupBox_DragEnterOver); 103 107 // 104 108 // showInRunCheckBox … … 119 123 // valueViewHost 120 124 // 121 this.valueViewHost.AllowDrop = true;122 125 this.valueViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 123 126 | System.Windows.Forms.AnchorStyles.Left) … … 131 134 this.valueViewHost.TabIndex = 3; 132 135 this.valueViewHost.ViewType = null; 133 this.valueViewHost.DragDrop += new System.Windows.Forms.DragEventHandler(this.valueViewHost_DragDrop); 134 this.valueViewHost.DragEnter += new System.Windows.Forms.DragEventHandler(this.valueViewHostPanel_DragEnterOver); 135 this.valueViewHost.DragOver += new System.Windows.Forms.DragEventHandler(this.valueViewHostPanel_DragEnterOver); 136 136 137 // 137 138 // clearValueButton -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.cs
r4477 r4522 99 99 clearValueButton.Enabled = Content != null && Content.Value != null && !ReadOnly; 100 100 showInRunCheckBox.Enabled = Content != null && !ReadOnly; 101 valueGroupBox.Enabled = Content != null;102 101 } 103 102 … … 149 148 if (Content != null) Content.GetsCollected = showInRunCheckBox.Checked; 150 149 } 151 protected virtual void value ViewHostPanel_DragEnterOver(object sender, DragEventArgs e) {150 protected virtual void valueGroupBox_DragEnterOver(object sender, DragEventArgs e) { 152 151 e.Effect = DragDropEffects.None; 153 152 Type type = e.Data.GetData("Type") as Type; … … 160 159 } 161 160 } 162 protected virtual void value ViewHost_DragDrop(object sender, DragEventArgs e) {161 protected virtual void valueGroupBox_DragDrop(object sender, DragEventArgs e) { 163 162 if (e.Effect != DragDropEffects.None) { 164 163 T value = e.Data.GetData("Value") as T; -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.Designer.cs
r4332 r4522 74 74 // valueGroupBox 75 75 // 76 this.valueGroupBox.AllowDrop = true; 76 77 this.valueGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 77 78 | System.Windows.Forms.AnchorStyles.Left) … … 87 88 this.valueGroupBox.TabStop = false; 88 89 this.valueGroupBox.Text = "Value"; 90 this.valueGroupBox.DragDrop += new System.Windows.Forms.DragEventHandler(this.valueGroupBox_DragDrop); 91 this.valueGroupBox.DragEnter += new System.Windows.Forms.DragEventHandler(this.valueGroupBox_DragEnterOver); 92 this.valueGroupBox.DragOver += new System.Windows.Forms.DragEventHandler(this.valueGroupBox_DragEnterOver); 89 93 // 90 94 // showInRunCheckBox … … 116 120 this.valueViewHost.Size = new System.Drawing.Size(374, 182); 117 121 this.valueViewHost.TabIndex = 3; 118 this.valueViewHost.ViewType = null; 119 this.valueViewHost.DragDrop += new System.Windows.Forms.DragEventHandler(this.valueViewHost_DragDrop); 120 this.valueViewHost.DragEnter += new System.Windows.Forms.DragEventHandler(this.valueViewHost_DragEnterOver); 121 this.valueViewHost.DragOver += new System.Windows.Forms.DragEventHandler(this.valueViewHost_DragEnterOver); 122 this.valueViewHost.ViewType = null; 122 123 // 123 124 // clearValueButton -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.cs
r4332 r4522 94 94 clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is ValueParameter<T>) && !ReadOnly; 95 95 showInRunCheckBox.Enabled = Content != null && !ReadOnly; 96 valueGroupBox.Enabled = Content != null;97 96 } 98 97 … … 135 134 if (Content != null) Content.GetsCollected = showInRunCheckBox.Checked; 136 135 } 137 protected virtual void value ViewHost_DragEnterOver(object sender, DragEventArgs e) {136 protected virtual void valueGroupBox_DragEnterOver(object sender, DragEventArgs e) { 138 137 e.Effect = DragDropEffects.None; 139 138 Type type = e.Data.GetData("Type") as Type; … … 146 145 } 147 146 } 148 protected virtual void value ViewHost_DragDrop(object sender, DragEventArgs e) {147 protected virtual void valueGroupBox_DragDrop(object sender, DragEventArgs e) { 149 148 if (e.Effect != DragDropEffects.None) { 150 149 T value = e.Data.GetData("Value") as T;
Note: See TracChangeset
for help on using the changeset viewer.