Changeset 17410 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared
- Timestamp:
- 01/28/20 14:53:45 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.Designer.cs
r17405 r17410 51 51 this.checkBoxActive.TabIndex = 2; 52 52 this.checkBoxActive.UseVisualStyleBackColor = true; 53 this.checkBoxActive.CheckedChanged += new System.EventHandler(this.checkBoxActive_CheckedChanged);54 53 // 55 54 // textBoxActualName … … 61 60 this.textBoxActualName.Size = new System.Drawing.Size(404, 20); 62 61 this.textBoxActualName.TabIndex = 12; 63 this.textBoxActualName.TextChanged += new System.EventHandler(this.textBoxActualName_TextChanged);64 62 // 65 63 // labelActualName … … 82 80 this.textBoxName.Size = new System.Drawing.Size(404, 20); 83 81 this.textBoxName.TabIndex = 10; 84 this.textBoxName.TextChanged += new System.EventHandler(this.textBoxName_TextChanged);85 82 // 86 83 // label1 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.cs
r17405 r17410 11 11 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 12 12 public partial class JsonItemBaseControl : UserControl { 13 p ublic JsonItemVMVM { get; set; }13 private JsonItemVMBase VM { get; set; } 14 14 15 15 private JsonItemBaseControl() { … … 17 17 } 18 18 19 public JsonItemBaseControl(JsonItemVM vm) {19 public JsonItemBaseControl(JsonItemVMBase vm) { 20 20 InitializeComponent(); 21 21 VM = vm; 22 checkBoxActive.Checked = VM.Selected; 23 textBoxName.Text = VM.Item.Name; 22 23 checkBoxActive.DataBindings.Add("Checked", VM, nameof(JsonItemVMBase.Selected)); 24 textBoxName.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.Name)); 25 textBoxActualName.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.ActualName)); 26 27 //checkBoxActive.Checked = VM.Selected; 28 //textBoxName.Text = VM.Item.Name; 24 29 if (string.IsNullOrWhiteSpace(VM.Item.ActualName)) 25 30 textBoxActualName.ReadOnly = true; … … 27 32 textBoxActualName.Text = VM.Item.ActualName; 28 33 } 29 30 private void checkBoxActive_CheckedChanged(object sender, EventArgs e) {31 VM.Selected = checkBoxActive.Checked;32 }33 34 private void textBoxName_TextChanged(object sender, EventArgs e) {35 VM.Item.Name = textBoxName.Text;36 }37 38 private void textBoxActualName_TextChanged(object sender, EventArgs e) {39 VM.Item.ActualName = textBoxActualName.Text;40 }41 34 } 42 35 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/NumericRangeControl.Designer.cs
r17405 r17410 1 namespace HeuristicLab.JsonInterface.OptimizerIntegration .Shared{1 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 2 2 partial class NumericRangeControl { 3 3 /// <summary> -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/NumericRangeControl.cs
r17405 r17410 10 10 using System.Globalization; 11 11 12 namespace HeuristicLab.JsonInterface.OptimizerIntegration .Shared{12 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 13 13 public partial class NumericRangeControl : UserControl { 14 14 … … 22 22 } 23 23 public bool IsDouble { get; set; } 24 25 26 24 27 25 public NumericRangeControl() {
Note: See TracChangeset
for help on using the changeset viewer.