Changeset 4522 for trunk/sources/HeuristicLab.Optimization.Views
- Timestamp:
- 09/27/10 16:45:31 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization.Views/3.3
- Files:
-
- 4 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;
Note: See TracChangeset
for help on using the changeset viewer.