Exemplo n.º 1
0
        public void AddPinGroup(DrawPinModel pin)
        {
            if (PinCollections == null)
            {
                PinCollections = new List <DrawPinModel>();
            }

            PinCollections.Add(pin);
        }
Exemplo n.º 2
0
        public bool RemotePinGroup(int id)
        {
            try
            {
                var pin = PinCollections.Where(i => i.PinGroup == id).First();

                PinCollections.RemoveAt(id);
                int index = 0;
                foreach (var item in PinCollections)
                {
                    item.PinGroup = index;
                    index++;
                }
            }
            catch { return(false); }

            return(true);
        }
Exemplo n.º 3
0
 public DrawPinModel GetPinGroupItem()
 {
     return(PinCollections.Last());
 }