public SelectInformation DeleteKey(Data.Key key) { key.IsSelected = false; U.RemoveFromArray(ref Keys, key); KeysAndAnchors.Remove(key); if (((Tag)key.Tag) == Tag.RED) { U.RemoveFromArray(ref RedKeys, key); } else if (((Tag)key.Tag) == Tag.GREEN) { U.RemoveFromArray(ref GreenKeys, key); } else if (((Tag)key.Tag) == Tag.BLUE) { U.RemoveFromArray(ref BlueKeys, key); } return(this); }
public SelectInformation AddKey(Data.Key key) { key.IsSelected = true; U.AddToArray(ref Keys, key); KeysAndAnchors.Add(key); if (((Tag)key.Tag) == Tag.RED) { U.AddToArray(ref RedKeys, key); } else if (((Tag)key.Tag) == Tag.GREEN) { U.AddToArray(ref GreenKeys, key); } else if (((Tag)key.Tag) == Tag.BLUE) { U.AddToArray(ref BlueKeys, key); } return(this); }
public void Clear() { foreach (Data.Key key in Keys) { key.IsSelected = false; } U.Empty(ref Keys); U.Empty(ref RedKeys); U.Empty(ref GreenKeys); U.Empty(ref BlueKeys); foreach (Data.Anchor a in Anchors) { a.IsSelected = false; } U.Empty(ref Anchors); KeysAndAnchors.Clear(); }
internal void DeleteAnchor(Data.Anchor anchor) { anchor.IsSelected = false; U.RemoveFromArray(ref Anchors, anchor); KeysAndAnchors.Remove(anchor); }
internal void AddAnchor(Data.Anchor anchor) { anchor.IsSelected = true; U.AddToArray(ref Anchors, anchor); KeysAndAnchors.Add(anchor); }