Changeset 17446 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared
- Timestamp:
- 02/20/20 16:58:03 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.cs
r17444 r17446 11 11 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 12 12 public partial class JsonItemBaseControl : UserControl { 13 protected JsonItemVMBaseVM { get; set; }13 protected IJsonItemVM VM { get; set; } 14 14 15 15 private JsonItemBaseControl() { … … 17 17 } 18 18 19 public JsonItemBaseControl( JsonItemVMBasevm) {19 public JsonItemBaseControl(IJsonItemVM vm) { 20 20 InitializeComponent(); 21 21 VM = vm; 22 22 23 checkBoxActive.DataBindings.Add("Checked", VM, nameof( JsonItemVMBase.Selected),23 checkBoxActive.DataBindings.Add("Checked", VM, nameof(IJsonItemVM.Selected), 24 24 false, DataSourceUpdateMode.OnPropertyChanged); 25 textBoxName.DataBindings.Add("Text", VM, nameof( JsonItemVMBase.Name));26 textBoxDescription.DataBindings.Add("Text", VM, nameof( JsonItemVMBase.Description));27 textBoxActualName.DataBindings.Add("Text", VM, nameof( JsonItemVMBase.ActualName));25 textBoxName.DataBindings.Add("Text", VM, nameof(IJsonItemVM.Name)); 26 textBoxDescription.DataBindings.Add("Text", VM, nameof(IJsonItemVM.Description)); 27 textBoxActualName.DataBindings.Add("Text", VM, nameof(IJsonItemVM.ActualName)); 28 28 29 29 if (string.IsNullOrWhiteSpace(VM.Item.ActualName)) -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/NumericRangeControl.Designer.cs
r17444 r17446 26 26 this.components = new System.ComponentModel.Container(); 27 27 this.textBoxFrom = new System.Windows.Forms.TextBox(); 28 this.label6 = new System.Windows.Forms.Label();29 28 this.groupBox2 = new System.Windows.Forms.GroupBox(); 30 29 this.checkBoxTo = new System.Windows.Forms.CheckBox(); 31 30 this.textBoxTo = new System.Windows.Forms.TextBox(); 32 this.label1 = new System.Windows.Forms.Label();33 31 this.checkBoxFrom = new System.Windows.Forms.CheckBox(); 34 32 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); … … 49 47 this.textBoxFrom.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxFrom_Validating); 50 48 // 51 // label652 //53 this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)54 | System.Windows.Forms.AnchorStyles.Right)));55 this.label6.AutoSize = true;56 this.label6.Location = new System.Drawing.Point(31, 21);57 this.label6.Name = "label6";58 this.label6.Size = new System.Drawing.Size(30, 13);59 this.label6.TabIndex = 0;60 this.label6.Text = "From";61 //62 49 // groupBox2 63 50 // 64 51 this.groupBox2.Controls.Add(this.checkBoxTo); 65 52 this.groupBox2.Controls.Add(this.textBoxTo); 66 this.groupBox2.Controls.Add(this.label1);67 53 this.groupBox2.Controls.Add(this.checkBoxFrom); 68 54 this.groupBox2.Controls.Add(this.textBoxFrom); 69 this.groupBox2.Controls.Add(this.label6);70 55 this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill; 71 56 this.groupBox2.Location = new System.Drawing.Point(0, 0); … … 79 64 // 80 65 this.checkBoxTo.AutoSize = true; 81 this.checkBoxTo.Location = new System.Drawing.Point( 10, 46);66 this.checkBoxTo.Location = new System.Drawing.Point(9, 45); 82 67 this.checkBoxTo.Name = "checkBoxTo"; 83 this.checkBoxTo.Size = new System.Drawing.Size( 15, 14);68 this.checkBoxTo.Size = new System.Drawing.Size(42, 17); 84 69 this.checkBoxTo.TabIndex = 7; 70 this.checkBoxTo.Text = "To:"; 85 71 this.checkBoxTo.UseVisualStyleBackColor = true; 86 72 // … … 97 83 this.textBoxTo.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxTo_Validating); 98 84 // 99 // label1100 //101 this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)102 | System.Windows.Forms.AnchorStyles.Right)));103 this.label1.AutoSize = true;104 this.label1.Location = new System.Drawing.Point(31, 46);105 this.label1.Name = "label1";106 this.label1.Size = new System.Drawing.Size(20, 13);107 this.label1.TabIndex = 5;108 this.label1.Text = "To";109 //110 85 // checkBoxFrom 111 86 // 112 87 this.checkBoxFrom.AutoSize = true; 113 this.checkBoxFrom.Location = new System.Drawing.Point( 10, 20);88 this.checkBoxFrom.Location = new System.Drawing.Point(9, 19); 114 89 this.checkBoxFrom.Name = "checkBoxFrom"; 115 this.checkBoxFrom.Size = new System.Drawing.Size( 15, 14);90 this.checkBoxFrom.Size = new System.Drawing.Size(52, 17); 116 91 this.checkBoxFrom.TabIndex = 4; 92 this.checkBoxFrom.Text = "From:"; 117 93 this.checkBoxFrom.UseVisualStyleBackColor = true; 118 94 // … … 138 114 #endregion 139 115 private System.Windows.Forms.TextBox textBoxFrom; 140 private System.Windows.Forms.Label label6;141 116 private System.Windows.Forms.GroupBox groupBox2; 142 117 private System.Windows.Forms.CheckBox checkBoxTo; 143 118 private System.Windows.Forms.TextBox textBoxTo; 144 private System.Windows.Forms.Label label1;145 119 private System.Windows.Forms.CheckBox checkBoxFrom; 146 120 private System.Windows.Forms.ErrorProvider errorProvider;
Note: See TracChangeset
for help on using the changeset viewer.