示例#1
0
        /// <summary>
        /// tilebuttonVisiable委托赋值函数
        /// </summary>
        /// <param name="tileButton"></param>
        /// <param name="isVisable"></param>
        private void SetTileButtonVisable(Bunifu.Framework.UI.BunifuTileButton tileButton, bool isVisiable)
        {
            if (tileButton.InvokeRequired)
            {
                setTileButtonVisiable setThis = new setTileButtonVisiable(SetTileButtonVisable);

                tileButton.Invoke(setThis, tileButton, isVisiable);
            }
            else
            {
                tileButton.Visible = isVisiable;
            }
        }
示例#2
0
        /// <summary>
        /// tilebutton委托赋值函数
        /// </summary>
        /// <param name="tileButton"></param>
        /// <param name="userInfo"></param>
        private void SetTileButton(Bunifu.Framework.UI.BunifuTileButton tileButton, APIClient.UserInfo userInfo)
        {
            if (tileButton.InvokeRequired)
            {
                setTileButton setThis = new setTileButton(SetTileButton);

                tileButton.Invoke(setThis, tileButton, userInfo);
            }
            else
            {
                tileButton.Image     = APIClient.LoadPicture(userInfo.avatarUrl);
                tileButton.LabelText = userInfo.nickName;
            }
        }