/// <summary> /// /// </summary> public void Dispose() { try { this.eDot.MouseEnter -= eDot_MouseEnter; this.eDot.MouseLeave -= eDot_MouseLeave; this.eDot.MouseMove -= eDot_MouseMove; this.eDot.MouseLeftButtonDown -= eDot_MouseLeftButtonDown; this.eDot.MouseLeftButtonUp -= eDot_MouseLeftButtonUp; DictArrowFootPoint.Clear(); DictArrowCapPoint.Clear(); } catch { } }
/// <summary> /// /// </summary> /// <param name="line"></param> public void RemoveLine(IArrowLine line) { //if (DictArrowCapPoint.ContainsKey(line)) //{ // DictArrowCapPoint.Remove(line); //} //if (DictArrowFootPoint.ContainsKey(line)) //{ // DictArrowFootPoint.Remove(line); //} if (DictArrowCapPoint.ContainsKey(line.CtrName)) { DictArrowCapPoint.Remove(line.CtrName); } if (DictArrowFootPoint.ContainsKey(line.CtrName)) { DictArrowFootPoint.Remove(line.CtrName); } }