private void UnregisterTile(Tile tile) { if (_unitsToTiles.Contains(tile)) { var unit = _unitsToTiles[tile]; tile.Leave(unit); _unitsToTiles.Remove(unit, tile); } }
private void RemoveMarker(Marker marker) { marker.PropertyChanged -= Marker_PropertyChanged; if (marker.Label != null) { RemoveLabel(marker); } if (markers.ContainsKey(marker)) { markers[marker].Remove(); markers.Remove(marker); } }
public void RemoveShapeLink(Link link) { if (linksAndArrows.Contains(link)) { RemoveShape(linksAndArrows[link]); linksAndArrows.Remove(link); } }
public int Count_AfterRemoving_ReturnsExpectedValue(int entriesToAdd, int entriesToRemove) { var dictionary = new TwoWayDictionary <string, int>(); for (var i = 0; i < entriesToAdd; i++) { dictionary.Add(i.ToString(), i); } for (var i = 0; i < entriesToRemove; i++) { dictionary.Remove(i.ToString()); } return(dictionary.Count); }
public void Remove(ITab t) { if (proust.Count == 1) { return; } if (!proust.ContainsKey(t)) { return; } string channel = proust[t].Channel; proust.Remove(t); app.Tabber.Remove(t); if (channel.IsChannel()) { app.Connection.Message("PART {0}", channel); } }
/// <summary> /// Removes an alias for a specific type /// </summary> /// <param name="type">the type to remove</param> public virtual void Remove(Type type) { bindings.Remove(type); }
private void RemoveTileOverlay(TileOverlay tileOverlay) { tileOverlays[tileOverlay].Remove(); tileOverlays.Remove(tileOverlay); }
public void RemoveActionShape(Shape shape) { ActionsAndShapes.Remove(shape); RemoveShape(shape); }
public void RemoveNodeShape(Shape shape) { nodesAndShapes.Remove(shape); RemoveShape(shape); }