Changeset 4522
- Timestamp:
- 09/27/10 16:45:31 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.Designer.cs
r4102 r4522 103 103 this.problemTabPage.Controls.Add(this.openProblemButton); 104 104 this.problemTabPage.Controls.Add(this.newProblemButton); 105 this.problemTabPage.AllowDrop = true; 105 106 this.problemTabPage.Location = new System.Drawing.Point(4, 22); 106 107 this.problemTabPage.Name = "problemTabPage"; … … 110 111 this.problemTabPage.Text = "Problem"; 111 112 this.problemTabPage.UseVisualStyleBackColor = true; 113 this.problemTabPage.DragDrop += new System.Windows.Forms.DragEventHandler(this.problemTabPage_DragDrop); 114 this.problemTabPage.DragEnter += new System.Windows.Forms.DragEventHandler(this.problemTabPage_DragEnterOver); 115 this.problemTabPage.DragOver += new System.Windows.Forms.DragEventHandler(this.problemTabPage_DragEnterOver); 112 116 // 113 117 // problemViewHost 114 118 // 115 this.problemViewHost.AllowDrop = true;116 119 this.problemViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 117 120 | System.Windows.Forms.AnchorStyles.Left) … … 125 128 this.problemViewHost.TabIndex = 3; 126 129 this.problemViewHost.ViewType = null; 127 this.problemViewHost.DragDrop += new System.Windows.Forms.DragEventHandler(this.problemViewHost_DragDrop);128 this.problemViewHost.DragEnter += new System.Windows.Forms.DragEventHandler(this.problemViewHost_DragEnterOver);129 this.problemViewHost.DragOver += new System.Windows.Forms.DragEventHandler(this.problemViewHost_DragEnterOver);130 130 // 131 131 // openProblemButton -
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs
r4216 r4522 259 259 Content.Prepare(false); 260 260 } 261 protected virtual void problem ViewHost_DragEnterOver(object sender, DragEventArgs e) {261 protected virtual void problemTabPage_DragEnterOver(object sender, DragEventArgs e) { 262 262 e.Effect = DragDropEffects.None; 263 263 Type type = e.Data.GetData("Type") as Type; … … 270 270 } 271 271 } 272 protected virtual void problem ViewHost_DragDrop(object sender, DragEventArgs e) {272 protected virtual void problemTabPage_DragDrop(object sender, DragEventArgs e) { 273 273 if (e.Effect != DragDropEffects.None) { 274 274 IProblem problem = e.Data.GetData("Value") as IProblem; -
trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.Designer.cs
r4011 r4522 94 94 // algorithmTabPage 95 95 // 96 this.algorithmTabPage.AllowDrop = true; 96 97 this.algorithmTabPage.Controls.Add(this.algorithmViewHost); 97 98 this.algorithmTabPage.Controls.Add(this.openAlgorithmButton); … … 104 105 this.algorithmTabPage.Text = "Algorithm"; 105 106 this.algorithmTabPage.UseVisualStyleBackColor = true; 107 this.algorithmTabPage.DragOver += new System.Windows.Forms.DragEventHandler(this.algorithmTabPage_DragEnterOver); 108 this.algorithmTabPage.DragDrop += new System.Windows.Forms.DragEventHandler(this.algorithmTabPage_DragDrop); 109 this.algorithmTabPage.DragEnter += new System.Windows.Forms.DragEventHandler(this.algorithmTabPage_DragEnterOver); 106 110 // 107 111 // algorithmViewHost 108 112 // 109 113 this.algorithmViewHost.Content = null; 110 this.algorithmViewHost.AllowDrop = true;111 114 this.algorithmViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 112 115 | System.Windows.Forms.AnchorStyles.Left) … … 117 120 this.algorithmViewHost.TabIndex = 3; 118 121 this.algorithmViewHost.ViewType = null; 119 this.algorithmViewHost.DragOver += new System.Windows.Forms.DragEventHandler(this.algorithmViewHost_DragEnterOver);120 this.algorithmViewHost.DragDrop += new System.Windows.Forms.DragEventHandler(this.algorithmViewHost_DragDrop);121 this.algorithmViewHost.DragEnter += new System.Windows.Forms.DragEventHandler(this.algorithmViewHost_DragEnterOver);122 122 // 123 123 // openAlgorithmButton -
trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs
r4216 r4522 234 234 Content.Prepare(false); 235 235 } 236 private void algorithm ViewHost_DragEnterOver(object sender, DragEventArgs e) {236 private void algorithmTabPage_DragEnterOver(object sender, DragEventArgs e) { 237 237 e.Effect = DragDropEffects.None; 238 238 if (ReadOnly) … … 247 247 } 248 248 } 249 private void algorithm ViewHost_DragDrop(object sender, DragEventArgs e) {249 private void algorithmTabPage_DragDrop(object sender, DragEventArgs e) { 250 250 if (e.Effect != DragDropEffects.None) { 251 251 IAlgorithm algorithm = e.Data.GetData("Value") as IAlgorithm; -
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.