|
9566 | 9566 | | { |
9567 | 9567 | | if (parent.GetType() == typeof(osfDesigner.TabPage)) |
9568 | 9568 | | { |
9569 | | - | control.Parent = ((dynamic)parent).OriginalObj; |
| 9569 | + | try |
| 9570 | + | { |
| 9571 | + | ((osfDesigner.TabPage)parent).OriginalObj.Controls.Add(control); |
| 9572 | + | } |
| 9573 | + | catch |
| 9574 | + | { |
| 9575 | + | control.Parent = parent; |
| 9576 | + | } |
9570 | 9577 | | } |
9571 | 9578 | | else |
9572 | 9579 | | { |
9573 | 9580 | | control.Parent = parent; |
9574 | | - | } |
| 9581 | + | } |
9575 | 9582 | | } |
9576 | 9583 | | } |
9577 | 9584 | | if (valProp == ""Истина"") |
|
10281 | 10288 | | } |
10282 | 10289 | | else |
10283 | 10290 | | { |
10284 | | - | if (control.GetType() == typeof(osfDesigner.FolderBrowserDialog)) |
10285 | | - | { |
10286 | | - | valProp = valProp.Remove(0, 1); |
10287 | | - | } |
10288 | | - | else |
10289 | | - | { |
10290 | | - | valProp = valProp.Replace(""\u0022"", """"); |
10291 | | - | } |
| 10291 | + | valProp = valProp.Replace(""\u0022"", """"); |
10292 | 10292 | | } |
10293 | 10293 | | try |
10294 | 10294 | | { |
@@ -19319,12 +19319,11 @@ |
19319 | 19319 | | string itemText = OneScriptFormsDesigner.ParseBetween(strPropertyValue, ""("", "","").Replace(""\u0022"", """"); |
19320 | 19320 | | string itemValue = OneScriptFormsDesigner.ParseBetween(strPropertyValue, "","", "")""); |
19321 | 19321 | | osfDesigner.ListItemComboBox ListItemComboBox1 = new ListItemComboBox(); |
19322 | | - | ////////ListItemComboBox1.Text = itemText; // Кажется это не нужно. |
| 19322 | + | ListItemComboBox1.Text = itemText; |
19323 | 19323 | | |
19324 | | - | if (itemValue.Contains(""\u0022"")) // Тип Строка. |
| 19324 | + | if (itemValue.StartsWith(""\u0022"") && itemValue.EndsWith(""\u0022"")) // Тип Строка. |
19325 | 19325 | | { |
19326 | | - | itemValue = itemValue.Remove(0, 1); |
19327 | | - | itemValue = itemValue.Remove(itemValue.Length - 1, 1); |
| 19326 | + | itemValue = itemValue.Replace(""\u0022"", """"); |
19328 | 19327 | | ListItemComboBox1.Value = itemValue; |
19329 | 19328 | | ListItemComboBox1.ValueType = DataType.Строка; |
19330 | 19329 | | } |
@@ -19382,13 +19381,12 @@ |
19382 | 19381 | | else // Обрабатываем как свойство поля выбора. |
19383 | 19382 | | { |
19384 | 19383 | | string displayName = OneScriptFormsDesigner.ParseBetween(strCurrent, componentName + ""."", ""=""); |
19385 | | - | string strPropertyValue = OneScriptFormsDesigner.ParseBetween(strCurrent, ""="", null); |
19386 | | - | strPropertyValue = strPropertyValue.Remove(strPropertyValue.Length - 1, 1); |
| 19384 | + | string strPropertyValue = OneScriptFormsDesigner.ParseBetween(strCurrent, ""="", "";""); |
19387 | 19385 | | string parentName = OneScriptFormsDesigner.ParseBetween(ComponentBlok, componentName + @"".Родитель="", @"";""); |
19388 | 19386 | | Control parent = (Control)dictObjects[parentName]; |
19389 | 19387 | | PropValueConverter.SetPropValue(control, displayName, strPropertyValue, NameObjectOneScriptForms, parent); |
19390 | 19388 | | } |
19391 | | - | } |
| 19389 | + | } |
19392 | 19390 | | else if (componentName.Contains(""СеткаДанных"")) |
19393 | 19391 | | { |
19394 | 19392 | | string controlName = ((osfDesigner.DataGrid)control).Name; |
|
0 commit comments