Beispiel #1
0
 /// <summary>
 /// 标牌关闭事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void mapLabel_Closed(object sender, EventArgs e)
 {
     this.labelShowType = ShowTypeEnum.No;
     this.ToolTipMode   = MarkerTooltipMode.OnMouseOver;
     isTipInit          = false;
     mapLabel           = null;
     lableVisible       = false;
 }
Beispiel #2
0
        /// <summary>
        /// 设置Tip显示方式
        /// </summary>
        /// <param name="showType"></param>
        public void SetTipShow(ShowTypeEnum showType)
        {
            switch (showType)
            {
            case ShowTypeEnum.Always:
                this.ToolTipMode = MarkerTooltipMode.Always;
                break;

            case ShowTypeEnum.MouseHover:
                this.ToolTipMode = MarkerTooltipMode.OnMouseOver;
                break;

            case ShowTypeEnum.No:
                this.ToolTipMode = MarkerTooltipMode.Never;
                break;
            }
        }
Beispiel #3
0
        /// <summary>
        /// 设置标牌显示方式
        /// </summary>
        /// <param name="showType">显示方式</param>
        public void SetLableShow(ShowTypeEnum showType)
        {
            this.labelShowType = showType;

            switch (showType)
            {
            case ShowTypeEnum.Always:
                InitMapLabel();
                break;

            case ShowTypeEnum.No:
                CloseMapLabel();
                break;

            case ShowTypeEnum.MouseHover:    //使用默认的tip
                break;
            }
        }
Beispiel #4
0
        private static string ToStr(float F, ShowTypeEnum ShowType)
        {
            switch (ShowType)
            {
            case ShowTypeEnum.D:
                return(F.ToString());

            case ShowTypeEnum.X:
                return(F.ToString("X"));

            case ShowTypeEnum.C:
                byte c = (byte)F;
                return(c.ToString());

            default:
                break;
            }
            return("");
        }
Beispiel #5
0
        private static string ToStr(uint U, ShowTypeEnum ShowType)
        {
            switch (ShowType)
            {
            case ShowTypeEnum.D:
                return(U.ToString());

            case ShowTypeEnum.X:
                return(U.ToString("X"));

            case ShowTypeEnum.C:
                char c = (char)U;
                return(c.ToString());

            default:
                break;
            }
            return("");
        }
Beispiel #6
0
 public void SetLableShow(ShowTypeEnum showType)
 {
     throw new NotImplementedException();
 }
 private static string ToStr(float F, ShowTypeEnum ShowType)
 {
     switch (ShowType)
     {
         case ShowTypeEnum.D:
             return F.ToString();
         case ShowTypeEnum.X:
             return F.ToString("X");
         case ShowTypeEnum.C:
             byte c = (byte)F;
             return c.ToString();
         default:
             break;
     }
     return "";
 }
 private static string ToStr(uint U, ShowTypeEnum ShowType)
 {
     switch (ShowType)
     {
         case ShowTypeEnum.D:
             return U.ToString();
         case ShowTypeEnum.X:
             return U.ToString("X");
         case ShowTypeEnum.C:
             char c = (char)U;
             return c.ToString();
         default:
             break;
     }
     return "";
 }
Beispiel #9
0
 public void SetTipShow(ShowTypeEnum showType)
 {
     //TODO
 }
Beispiel #10
0
 /// <summary>
 /// 设置标牌显示
 /// </summary>
 /// <param name="showType">显示方式</param>
 public void SetLableShow(ShowTypeEnum showType)
 {
 }