/// <summary>
 /// 쪽지(메모)/채팅창에서 인원추가시 팝업
 /// 쪽지는 팀별/전체/접속자선택모두 가능
 /// 채팅은 접속자만 가능
 /// 이미 추가된 인원은 보여줌.
 /// 
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="mode"></param>
 /// <param name="formKey"></param>
 public AddMemberForm(MsgrConnection connection, AddMemberMode mode, string formKey, List<MemberObj> userList, SetMemberListHandler setMemberList)
 {
     InitializeComponent();
     myId = ConfigHelper.Id;
     myName = Members.GetByUserId(myId).Name;
     this.formKey = formKey;
     this.mode = mode;
     this.connection = connection;
     this.setMemberList = setMemberList;
     formHeight = this.Height;
     //대화인 경우 현재 접속자만.
     if (mode == AddMemberMode.OnChatformAdded) {
         this.RadioButtonAll.Enabled = false;
         this.RadioButtonListByTeam.Enabled = false;
         SetTeamMode(false);
         this.RadioButtonConnectedUserOnly.Checked = true;
     }
     SetListBox(userList);
 }
 /// <summary>
 /// 쪽지(메모)/채팅창에서 인원추가시 팝업
 /// 쪽지는 팀별/전체/접속자선택모두 가능
 /// 채팅은 접속자만 가능
 /// 이미 추가된 인원은 보여줌.
 ///
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="mode"></param>
 /// <param name="formKey"></param>
 public AddMemberForm(MsgrConnection connection, AddMemberMode mode, string formKey, List <MemberObj> userList, SetMemberListHandler setMemberList)
 {
     InitializeComponent();
     myId               = ConfigHelper.Id;
     myName             = Members.GetByUserId(myId).Name;
     this.formKey       = formKey;
     this.mode          = mode;
     this.connection    = connection;
     this.setMemberList = setMemberList;
     formHeight         = this.Height;
     //대화인 경우 현재 접속자만.
     if (mode == AddMemberMode.OnChatformAdded)
     {
         this.RadioButtonAll.Enabled        = false;
         this.RadioButtonListByTeam.Enabled = false;
         SetTeamMode(false);
         this.RadioButtonConnectedUserOnly.Checked = true;
     }
     SetListBox(userList);
 }