Beispiel #1
0
        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);
        }
Beispiel #2
0
 internal void AddAnchor(Data.Anchor anchor)
 {
     anchor.IsSelected = true;
     U.AddToArray(ref Anchors, anchor);
     KeysAndAnchors.Add(anchor);
 }