|
@@ -448,7 +448,18 @@ namespace Venus_MainPages.ViewModels
|
|
|
TextBlock textBlock = new TextBlock();
|
|
|
textBlock.FontSize = 15;
|
|
|
//textBlock.Width = 100;
|
|
|
- textBlock.Text = propertyInfo.Name + ":";
|
|
|
+ switch (propertyInfo.Name)
|
|
|
+ {
|
|
|
+ case "ChuckRecipe":
|
|
|
+ textBlock.Text = "Chuck:";
|
|
|
+ break;
|
|
|
+ case "DechuckRecipe":
|
|
|
+ textBlock.Text = "DeChuck:";
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ textBlock.Text = propertyInfo.Name + ":";
|
|
|
+ break;
|
|
|
+ }
|
|
|
textBlock.Margin = new Thickness(15, 0, 0, 0);
|
|
|
textBlock.VerticalAlignment = VerticalAlignment.Center;
|
|
|
HeadWrapPanel.Children.Add(textBlock);
|
|
@@ -481,7 +492,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
ItemsControlHelper.SetEnumValuesToItemsSource(control, true);
|
|
|
break;
|
|
|
case "ChuckRecipe":
|
|
|
- string[] chucklist = new string[] {"" };
|
|
|
+ string[] chucklist = new string[] { "" };
|
|
|
ArrayList arrayList = new ArrayList(chucklist.ToList());
|
|
|
IEnumerable<string> chlist= GetFilesNames(Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName)).ToList().Where(item => item.ToLower().Contains("chuck") && (item.ToLower().Contains("dechuck") == false));
|
|
|
foreach (var i in chlist)
|
|
@@ -502,6 +513,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
};
|
|
|
control.Height = 23;
|
|
|
control.MinWidth = 100;
|
|
|
+ control.MaxWidth = 300;
|
|
|
control.SetBinding(ComboBox.SelectedItemProperty, binding);
|
|
|
break;
|
|
|
case "DechuckRecipe":
|
|
@@ -524,6 +536,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
};
|
|
|
control.Height = 23;
|
|
|
control.MinWidth = 100;
|
|
|
+ control.MaxWidth = 300;
|
|
|
control.SetBinding(ComboBox.SelectedItemProperty, binding);
|
|
|
|
|
|
break;
|