public void RemoveVerticalLine(SimuViewVLineModel vline) { if (_vlines.ContainsValue(vline)) { RemoveVerticalLine(vline.X, vline.Y); } }
public SimuViewVLineModel ReplaceVerticalLine(SimuViewVLineModel vline) { IntPoint p = new IntPoint(vline.X, vline.Y); if (!_vlines.ContainsKey(p)) { _vlines.Add(p, vline); LadderCanvas.Children.Add(vline); return(null); } //UpdateRowCount(); return(vline); }