/// <summary> /// 初始化消息列表 /// </summary> /// <param name="user">对方云信名片</param> public void init(NimUser user) { targetId = user.accid; targetHead = Util.getImageFromUrl(user.icon); showHistory(); }
/// <summary> /// 构造方法 /// </summary> /// <param name="user">对方云信名片</param> public HistoryDialog(NimUser user) { InitializeComponent(); sbeNext.Click += (sender, args) => getHistory(); Closed += (sender, args) => Dispose(); close.Click += (sender, args) => { DialogResult = DialogResult.OK; Close(); }; targetId = user.accid; targetHead = Util.getImageFromUrl(user.icon); getHistory(); }