Changeset 4011 for trunk/sources/HeuristicLab.Parameters.Views
- Timestamp:
- 07/07/10 14:36:22 (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
r3306 r4011 47 47 private void InitializeComponent() { 48 48 this.valueGroupBox = new System.Windows.Forms.GroupBox(); 49 this.valuePanel = new System.Windows.Forms.Panel(); 50 this.viewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 49 this.valueViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 51 50 this.clearValueButton = new System.Windows.Forms.Button(); 52 51 this.setValueButton = new System.Windows.Forms.Button(); … … 55 54 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 56 55 this.valueGroupBox.SuspendLayout(); 57 this.valuePanel.SuspendLayout();58 56 this.SuspendLayout(); 59 57 // … … 92 90 | System.Windows.Forms.AnchorStyles.Left) 93 91 | System.Windows.Forms.AnchorStyles.Right))); 94 this.valueGroupBox.Controls.Add(this.value Panel);92 this.valueGroupBox.Controls.Add(this.valueViewHost); 95 93 this.valueGroupBox.Controls.Add(this.clearValueButton); 96 94 this.valueGroupBox.Controls.Add(this.setValueButton); … … 102 100 this.valueGroupBox.Text = "Value"; 103 101 // 104 // v aluePanel102 // viewHost 105 103 // 106 this.valuePanel.AllowDrop = true; 107 this.valuePanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 104 this.valueViewHost.AllowDrop = true; 105 this.valueViewHost.Content = null; 106 this.valueViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 108 107 | System.Windows.Forms.AnchorStyles.Left) 109 108 | System.Windows.Forms.AnchorStyles.Right))); 110 this.valuePanel.Controls.Add(this.viewHost); 111 this.valuePanel.Location = new System.Drawing.Point(6, 49); 112 this.valuePanel.Name = "valuePanel"; 113 this.valuePanel.Size = new System.Drawing.Size(374, 156); 114 this.valuePanel.TabIndex = 0; 115 this.valuePanel.DragOver += new System.Windows.Forms.DragEventHandler(this.valuePanel_DragEnterOver); 116 this.valuePanel.DragDrop += new System.Windows.Forms.DragEventHandler(this.valuePanel_DragDrop); 117 this.valuePanel.DragEnter += new System.Windows.Forms.DragEventHandler(this.valuePanel_DragEnterOver); 118 // 119 // viewHost 120 // 121 this.viewHost.Content = null; 122 this.viewHost.Dock = System.Windows.Forms.DockStyle.Fill; 123 this.viewHost.Location = new System.Drawing.Point(0, 0); 124 this.viewHost.Name = "viewHost"; 125 this.viewHost.Size = new System.Drawing.Size(374, 156); 126 this.viewHost.TabIndex = 0; 127 this.viewHost.ViewType = null; 109 this.valueViewHost.Location = new System.Drawing.Point(6, 49); 110 this.valueViewHost.Name = "valueViewHost"; 111 this.valueViewHost.Size = new System.Drawing.Size(374, 156); 112 this.valueViewHost.TabIndex = 0; 113 this.valueViewHost.ViewType = null; 114 this.valueViewHost.DragOver += new System.Windows.Forms.DragEventHandler(this.valueViewHostPanel_DragEnterOver); 115 this.valueViewHost.DragDrop += new System.Windows.Forms.DragEventHandler(this.valueViewHost_DragDrop); 116 this.valueViewHost.DragEnter += new System.Windows.Forms.DragEventHandler(this.valueViewHostPanel_DragEnterOver); 128 117 // 129 118 // clearValueButton … … 189 178 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 190 179 this.valueGroupBox.ResumeLayout(false); 191 this.valuePanel.ResumeLayout(false);192 180 this.ResumeLayout(false); 193 181 this.PerformLayout(); … … 198 186 199 187 protected System.Windows.Forms.GroupBox valueGroupBox; 200 protected System.Windows.Forms.Panel valuePanel; 201 protected HeuristicLab.MainForm.WindowsForms.ViewHost viewHost; 188 protected HeuristicLab.MainForm.WindowsForms.ViewHost valueViewHost; 202 189 protected System.Windows.Forms.Button setValueButton; 203 190 protected System.Windows.Forms.Button clearValueButton; -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.cs
r3904 r4011 79 79 if (Content == null) { 80 80 actualNameTextBox.Text = "-"; 81 v iewHost.Content = null;81 valueViewHost.Content = null; 82 82 } else { 83 83 actualNameTextBox.Text = Content.ActualName; 84 v iewHost.ViewType = null;85 v iewHost.Content = Content.Value;84 valueViewHost.ViewType = null; 85 valueViewHost.Content = Content.Value; 86 86 } 87 87 } … … 107 107 else { 108 108 clearValueButton.Enabled = Content.Value != null && !ReadOnly; 109 v iewHost.ViewType = null;110 v iewHost.Content = Content.Value;109 valueViewHost.ViewType = null; 110 valueViewHost.Content = Content.Value; 111 111 } 112 112 } … … 133 133 Content.Value = null; 134 134 } 135 protected virtual void value Panel_DragEnterOver(object sender, DragEventArgs e) {135 protected virtual void valueViewHostPanel_DragEnterOver(object sender, DragEventArgs e) { 136 136 e.Effect = DragDropEffects.None; 137 137 Type type = e.Data.GetData("Type") as Type; … … 144 144 } 145 145 } 146 protected virtual void value Panel_DragDrop(object sender, DragEventArgs e) {146 protected virtual void valueViewHost_DragDrop(object sender, DragEventArgs e) { 147 147 if (e.Effect != DragDropEffects.None) { 148 148 T value = e.Data.GetData("Value") as T; -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.Designer.cs
r3306 r4011 47 47 private void InitializeComponent() { 48 48 this.valueGroupBox = new System.Windows.Forms.GroupBox(); 49 this.valuePanel = new System.Windows.Forms.Panel(); 50 this.viewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 49 this.valueViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 51 50 this.clearValueButton = new System.Windows.Forms.Button(); 52 51 this.setValueButton = new System.Windows.Forms.Button(); 53 52 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 54 53 this.valueGroupBox.SuspendLayout(); 55 this.valuePanel.SuspendLayout();56 54 this.SuspendLayout(); 57 55 // … … 78 76 | System.Windows.Forms.AnchorStyles.Left) 79 77 | System.Windows.Forms.AnchorStyles.Right))); 80 this.valueGroupBox.Controls.Add(this.value Panel);78 this.valueGroupBox.Controls.Add(this.valueViewHost); 81 79 this.valueGroupBox.Controls.Add(this.clearValueButton); 82 80 this.valueGroupBox.Controls.Add(this.setValueButton); … … 88 86 this.valueGroupBox.Text = "Value"; 89 87 // 90 // v aluePanel88 // viewHost 91 89 // 92 this.valuePanel.AllowDrop = true; 93 this.valuePanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 90 this.valueViewHost.AllowDrop = true; 91 this.valueViewHost.Content = null; 92 this.valueViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 94 93 | System.Windows.Forms.AnchorStyles.Left) 95 94 | System.Windows.Forms.AnchorStyles.Right))); 96 this.valuePanel.Controls.Add(this.viewHost); 97 this.valuePanel.Location = new System.Drawing.Point(6, 49); 98 this.valuePanel.Name = "valuePanel"; 99 this.valuePanel.Size = new System.Drawing.Size(374, 182); 100 this.valuePanel.TabIndex = 0; 101 this.valuePanel.DragOver += new System.Windows.Forms.DragEventHandler(this.valuePanel_DragEnterOver); 102 this.valuePanel.DragDrop += new System.Windows.Forms.DragEventHandler(this.valuePanel_DragDrop); 103 this.valuePanel.DragEnter += new System.Windows.Forms.DragEventHandler(this.valuePanel_DragEnterOver); 104 // 105 // viewHost 106 // 107 this.viewHost.Content = null; 108 this.viewHost.Dock = System.Windows.Forms.DockStyle.Fill; 109 this.viewHost.Location = new System.Drawing.Point(0, 0); 110 this.viewHost.Name = "viewHost"; 111 this.viewHost.Size = new System.Drawing.Size(374, 182); 112 this.viewHost.TabIndex = 0; 113 this.viewHost.ViewType = null; 95 this.valueViewHost.Location = new System.Drawing.Point(6, 49); 96 this.valueViewHost.Name = "viewHost"; 97 this.valueViewHost.Size = new System.Drawing.Size(374, 182); 98 this.valueViewHost.TabIndex = 0; 99 this.valueViewHost.ViewType = null; 100 this.valueViewHost.DragOver += new System.Windows.Forms.DragEventHandler(this.valueViewHost_DragEnterOver); 101 this.valueViewHost.DragDrop += new System.Windows.Forms.DragEventHandler(this.valueViewHost_DragDrop); 102 this.valueViewHost.DragEnter += new System.Windows.Forms.DragEventHandler(this.valueViewHost_DragEnterOver); 114 103 // 115 104 // clearValueButton … … 152 141 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 153 142 this.valueGroupBox.ResumeLayout(false); 154 this.valuePanel.ResumeLayout(false);155 143 this.ResumeLayout(false); 156 144 this.PerformLayout(); … … 161 149 162 150 protected System.Windows.Forms.GroupBox valueGroupBox; 163 protected System.Windows.Forms.Panel valuePanel; 164 protected HeuristicLab.MainForm.WindowsForms.ViewHost viewHost; 151 protected HeuristicLab.MainForm.WindowsForms.ViewHost valueViewHost; 165 152 protected System.Windows.Forms.Button setValueButton; 166 153 protected System.Windows.Forms.Button clearValueButton; -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.cs
r3904 r4011 78 78 if (Content == null) { 79 79 clearValueButton.Visible = true; 80 v iewHost.Content = null;80 valueViewHost.Content = null; 81 81 } else { 82 82 clearValueButton.Visible = !(Content is ValueParameter<T>); 83 v iewHost.ViewType = null;84 v iewHost.Content = Content.Value;83 valueViewHost.ViewType = null; 84 valueViewHost.Content = Content.Value; 85 85 } 86 86 } … … 98 98 else { 99 99 clearValueButton.Enabled = Content.Value != null && !ReadOnly; 100 v iewHost.ViewType = null;101 v iewHost.Content = Content.Value;100 valueViewHost.ViewType = null; 101 valueViewHost.Content = Content.Value; 102 102 } 103 103 } … … 121 121 Content.Value = null; 122 122 } 123 protected virtual void value Panel_DragEnterOver(object sender, DragEventArgs e) {123 protected virtual void valueViewHost_DragEnterOver(object sender, DragEventArgs e) { 124 124 e.Effect = DragDropEffects.None; 125 125 Type type = e.Data.GetData("Type") as Type; … … 132 132 } 133 133 } 134 protected virtual void value Panel_DragDrop(object sender, DragEventArgs e) {134 protected virtual void valueViewHost_DragDrop(object sender, DragEventArgs e) { 135 135 if (e.Effect != DragDropEffects.None) { 136 136 T value = e.Data.GetData("Value") as T;
Note: See TracChangeset
for help on using the changeset viewer.