internal void AppendAction(int count) { var selValues = new SelectedValues(); selValues.Values = SelectedValue.CreateNew(count); ActionValues.Add(selValues); }
internal void InsertAction(AddRowsTest.InsertPosition insertPosition, int count) { var selValues = new SelectedValues(); selValues.Values = SelectedValue.CreateNew(count); switch (insertPosition) { case AddRowsTest.InsertPosition.First: ActionValues.Insert(0, selValues); break; case AddRowsTest.InsertPosition.Second: ActionValues.Insert(1, selValues); break; case AddRowsTest.InsertPosition.Last: ActionValues.Insert(ActionValues.Count - 1, selValues); break; case AddRowsTest.InsertPosition.AfterLast: ActionValues.Add(selValues); break; default: throw new ArgumentOutOfRangeException(nameof(insertPosition), insertPosition, null); } }
private void ParseHtmlActionLists(string input) { var actions = Regex.Split(input, "<p><em><strong>"); foreach (var action in actions) { if (!string.IsNullOrEmpty(action)) { try { var kvp = Regex.Split(action, @"</strong></em>"); ActionNames.Add(StripHtmlTags(kvp[0])); ActionValues.Add(StripHtmlTags(kvp[1])); } catch (Exception) { } } } }