/// <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; } }
/// <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; } }