Changeset 16172 for branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views
- Timestamp:
- 09/21/18 09:50:12 (6 years ago)
- Location:
- branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views
- Files:
-
- 2 added
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views/LinearProgrammingProblemDefinitionScriptView.Designer.cs
r16138 r16172 21 21 22 22 23 namespace HeuristicLab.Problems.Programmable.Views { 24 partial class ProblemDefinitionScriptView { 23 using System.ComponentModel; 24 using System.Windows.Forms; 25 using HeuristicLab.Scripting.Views; 26 27 namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Views { 28 partial class LinearProgrammingProblemDefinitionScriptView { 25 29 /// <summary> 26 30 /// Required designer variable. 27 31 /// </summary> 28 private System.ComponentModel.IContainer components = null;32 private IContainer components = null; 29 33 30 34 /// <summary> … … 46 50 /// </summary> 47 51 private void InitializeComponent() { 48 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof( ProblemDefinitionScriptView));52 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LinearProgrammingProblemDefinitionScriptView)); 49 53 this.splitContainer2 = new System.Windows.Forms.SplitContainer(); 50 54 this.variableStoreView = new HeuristicLab.Scripting.Views.VariableStoreView(); … … 168 172 #endregion 169 173 170 private S ystem.Windows.Forms.SplitContainer splitContainer2;171 private Scripting.Views.VariableStoreView variableStoreView;174 private SplitContainer splitContainer2; 175 private VariableStoreView variableStoreView; 172 176 } 173 177 } -
branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views/LinearProgrammingProblemDefinitionScriptView.cs
r16138 r16172 23 23 using System.Drawing; 24 24 using HeuristicLab.MainForm; 25 using HeuristicLab.MathematicalOptimization.LinearProgramming.Problems; 26 using HeuristicLab.PluginInfrastructure; 25 27 using HeuristicLab.Scripting.Views; 26 28 27 namespace HeuristicLab. Problems.Programmable.Views {28 [View(" ProblemDefinitionScriptView")]29 [Content(typeof( ProblemDefinitionScript), IsDefaultView = true)]30 public partial class ProblemDefinitionScriptView : ScriptView {29 namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Views { 30 [View("LinearProgrammingProblemDefinitionScriptView")] 31 [Content(typeof(LinearProgrammingProblemDefinitionScript), IsDefaultView = true)] 32 public partial class LinearProgrammingProblemDefinitionScriptView : ScriptView { 31 33 32 public new ProblemDefinitionScript Content {33 get { return (ProblemDefinitionScript)base.Content; }34 set { base.Content = value; }34 public new LinearProgrammingProblemDefinitionScript Content { 35 get => (LinearProgrammingProblemDefinitionScript)base.Content; 36 set => base.Content = value; 35 37 } 36 38 37 public ProblemDefinitionScriptView() {39 public LinearProgrammingProblemDefinitionScriptView() { 38 40 InitializeComponent(); 39 41 } … … 41 43 protected override void OnContentChanged() { 42 44 base.OnContentChanged(); 43 variableStoreView.Content = Content == null ? null : Content.VariableStore;45 variableStoreView.Content = Content?.VariableStore; 44 46 } 45 47 … … 53 55 base.Compile(); 54 56 } catch (ProblemDefinitionScriptException e) { 55 PluginInfrastructure.ErrorHandling.ShowErrorDialog(e);57 ErrorHandling.ShowErrorDialog(e); 56 58 return false; 57 59 } -
branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views/LinearProgrammingProblemView.Designer.cs
r16138 r16172 20 20 #endregion 21 21 22 namespace HeuristicLab.Problems.Programmable.Views { 23 partial class SingleObjectiveProgrammableProblemView { 22 using System.ComponentModel; 23 24 namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Views { 25 partial class LinearProgrammingProblemView { 24 26 /// <summary> 25 27 /// Required designer variable. 26 28 /// </summary> 27 private System.ComponentModel.IContainer components = null;29 private IContainer components = null; 28 30 29 31 /// <summary> … … 47 49 this.SuspendLayout(); 48 50 // 49 // ProgrammableProblemView51 // LinearProgrammingProblemView 50 52 // 51 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 52 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 53 this.Name = "ProgrammableProblemView"; 54 this.Size = new System.Drawing.Size(626, 413); 53 this.Name = "LinearProgrammingProblemView"; 54 this.Load += new System.EventHandler(this.LinearProgrammingProblemView_Load); 55 55 this.ResumeLayout(false); 56 56 -
branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views/LinearProgrammingProblemView.cs
r16138 r16172 25 25 using HeuristicLab.MainForm; 26 26 using HeuristicLab.MainForm.WindowsForms; 27 using HeuristicLab.MathematicalOptimization.LinearProgramming.Problems; 27 28 28 namespace HeuristicLab. Problems.Programmable.Views {29 [View(" Single-Objective ScriptableProblem View")]30 [Content(typeof( SingleObjectiveProgrammableProblem), true)]31 public partial class SingleObjectiveProgrammableProblemView : ItemView {29 namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Views { 30 [View("Linear Programming Problem View")] 31 [Content(typeof(LinearProgrammingProblem), true)] 32 public partial class LinearProgrammingProblemView : ItemView { 32 33 protected ViewHost ScriptView; 33 34 34 public new SingleObjectiveProgrammableProblem Content {35 get { return (SingleObjectiveProgrammableProblem)base.Content; }36 set { base.Content = value; }35 public new LinearProgrammingProblem Content { 36 get => (LinearProgrammingProblem)base.Content; 37 set => base.Content = value; 37 38 } 38 39 39 public SingleObjectiveProgrammableProblemView() {40 public LinearProgrammingProblemView() { 40 41 InitializeComponent(); 41 ScriptView = new ViewHost (){ ViewsLabelVisible = false, Dock = DockStyle.Fill };42 ScriptView = new ViewHost { ViewsLabelVisible = false, Dock = DockStyle.Fill }; 42 43 Controls.Add(ScriptView); 43 44 } … … 72 73 Caption = Content.Name; 73 74 } 75 76 private void LinearProgrammingProblemView_Load(object sender, EventArgs e) { 77 78 } 74 79 } 75 80 }
Note: See TracChangeset
for help on using the changeset viewer.