public void AddPinGroup(DrawPinModel pin) { if (PinCollections == null) { PinCollections = new List <DrawPinModel>(); } PinCollections.Add(pin); }
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); }
public DrawPinModel GetPinGroupItem() { return(PinCollections.Last()); }