예제 #1
0
 /// <summary>
 /// 刷新选择信息
 /// </summary>
 private void RefreshSelectItems()
 {
     this.flowLayoutPanel1.Controls.Clear();
     foreach (string key in SelectUserDict.Keys)
     {
         string info = SelectUserDict[key];
         if (!string.IsNullOrEmpty(info))
         {
             UserNameControl control = new UserNameControl();
             control.BindData(key, info);
             control.OnDeleteItem += new UserNameControl.DeleteEventHandler(control_OnDeleteItem);
             this.flowLayoutPanel1.Controls.Add(control);
         }
     }
     this.lblItemCount.Text = string.Format("当前选择【{0}】项目", SelectUserDict.Keys.Count);
 }
예제 #2
0
 public Message(UserNameControl userNameControl, MessengerMode mode)
 {
     UserNameControl = userNameControl;
     Mode            = mode;
 }