예제 #1
0
        /// <summary>
        /// 初始化消息列表
        /// </summary>
        /// <param name="user">对方云信名片</param>
        public void init(NimUser user)
        {
            targetId   = user.accid;
            targetHead = Util.getImageFromUrl(user.icon);

            showHistory();
        }
예제 #2
0
        /// <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();
        }