Esempio n. 1
0
 /// <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 { }
 }
Esempio n. 2
0
        /// <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);
            }
        }