private void RemoveWith(AttributeTags tag) { if (tag == AttributeTags.TextContains) { return; } UsedWiths.Remove(tag); NotUsedWiths.Add(tag); }
public void SetCurrentUiObjectInfo(UiObjectInfo uiObjectInfo, IList <Node> allNodes) { _allNodes = new List <Node>(allNodes); UiObjectInfo = uiObjectInfo; UseUniqueWiths = uiObjectInfo.AutoSelectedWith != null; NotUsedWiths.Clear(); UsedWiths.Clear(); LoadWiths(); LoadAttributes(); }
private void CheckWith(string value, AttributeTags tag) { if (UiObjectInfo.FindWith.Contains(tag)) { UsedWiths.Add(tag); } else { if (string.IsNullOrEmpty(value)) { return; } NotUsedWiths.Add(tag); } }