/// 设置信息 /// <summary> /// 设置信息 /// </summary> /// <param name="data"></param> public void SetInfo(AgentInfo data) { this.data = data; //客服名称 lb_name.Text = data.userName; //持续时间 lb_date.Text = CalcDuration(); //设置背景图 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ItemUI)); this.picbox.Image = MongoDBHelper.ImageName(data.CurrStatus); }