Browse Source

revise pm count box input limit
revise sequence recipe save as bug

chenzk 3 weeks ago
parent
commit
00a7c5c6cf

+ 2 - 1
CyberX8_MainPages/ViewModels/SequenceRecipeViewModel.cs

@@ -611,7 +611,8 @@ namespace CyberX8_MainPages.ViewModels
                         //    recipe.Recipes.Add(item); 
                         //}
                         recipe = (SequenceRecipe)PropertyUtil.Clone(Recipe);
-
+                        recipe.Recipes.Clear();
+                        recipe.Recipes.AddRange(ProcessRecipes);
                         recipe.CreateDate = DateTime.Now;
                         recipe.Ppid = recipeNameDialog.RecipeName;
                         recipe.Description = recipeNameDialog.RecipeDescription;

+ 1 - 1
Framework/UICore/Control/PMCounterValueTextBox.xaml.cs

@@ -142,7 +142,7 @@ namespace MECF.Framework.UI.Core.Control
 
         private bool IsTextAllowed(string key, string text)
         {
-            Regex regex = new Regex("[^0-9.-]+"); //regex that matches disallowed text
+            Regex regex = new Regex("[^0-9.]+"); //regex that matches disallowed text
             return !regex.IsMatch(key);
         }