/// <param name="chatterList">채팅가능자 조합한 키값(myid/id/id/id..)</param> public ChatForm(MsgrConnection connection, MiscController miscCtrl, List<MemberObj> groupList) { try { InitializeComponent(); this.connection = connection; this.miscCtrl = miscCtrl; List<string> userList = new List<string>(); foreach (MemberObj userObj in groupList) { if (userObj.Status != MsgrUserStatus.LOGOUT) userList.Add(userObj.Id); } formKey = ChatUtils.GetFormKey(userList, ConfigHelper.Id); Initialize(); Logger.info(string.Format("채팅창생성 key[{0}]", formKey)); foreach (MemberObj userObj in groupList) { if (userObj.Status != MsgrUserStatus.LOGOUT) { SetChatterOnFormOpening(userObj); } else { PostCanNotJoinMessage(userObj.Name); } } } catch (Exception ex) { Logger.error(ex.ToString()); MessageBox.Show("화면 초기화중 오류가 발생했습니다.\n 담당자에게 문의하세요.", "초기화 오류", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <param name="chatMsg">chatMsg = d|formkey|id/id/...|name|메시지내용</param> public ChatForm(MsgrConnection connection, MiscController miscCtrl,ChatObj chatObj) { try { InitializeComponent(); this.connection = connection; this.miscCtrl = miscCtrl; formKey = chatObj.ChatKey; Initialize(); Logger.info(string.Format("채팅창생성 key[{0}]", formKey)); //첫번째가 대화메시지 띄운 사람. foreach (MemberObj memberObj in chatObj.MemberList) { if (!ConfigHelper.Id.Equals(memberObj.Id)) SetChatterOnFormOpening(Members.GetByUserId(memberObj.Id)); } //chatForm.WindowState = FormWindowState.Minimized; //chatForm.Show(); this.PostUserMessage(chatObj.UserId, chatObj.UserName, chatObj.Msg); } catch (Exception ex) { Logger.error(ex.ToString()); MessageBox.Show("화면 초기화중 오류가 발생했습니다.\n 담당자에게 문의하세요.","초기화 오류",MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <param name="chatMsg">chatMsg = d|formkey|id/id/...|name|메시지내용</param> public ChatForm(MsgrConnection connection, MiscController miscCtrl, ChatObj chatObj) { try { InitializeComponent(); this.connection = connection; this.miscCtrl = miscCtrl; formKey = chatObj.ChatKey; Initialize(); Logger.info(string.Format("채팅창생성 key[{0}]", formKey)); //첫번째가 대화메시지 띄운 사람. foreach (MemberObj memberObj in chatObj.MemberList) { if (!ConfigHelper.Id.Equals(memberObj.Id)) { SetChatterOnFormOpening(Members.GetByUserId(memberObj.Id)); } } //chatForm.WindowState = FormWindowState.Minimized; //chatForm.Show(); this.PostUserMessage(chatObj.UserId, chatObj.UserName, chatObj.Msg); } catch (Exception ex) { Logger.error(ex.ToString()); MessageBox.Show("화면 초기화중 오류가 발생했습니다.\n 담당자에게 문의하세요.", "초기화 오류", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public ChatForm(MsgrConnection connection, MiscController miscCtrl, MemberObj chatterObj) { try { InitializeComponent(); this.connection = connection; this.miscCtrl = miscCtrl; formKey = ChatUtils.GetFormKey(chatterObj.Id, ConfigHelper.Id); Initialize(); Logger.info(string.Format("채팅창생성 key[{0}]", formKey)); SetChatterOnFormOpening(chatterObj);//대화창에 참가자 노드 추가(key=id, text=name) } catch (Exception ex) { Logger.error(ex.ToString()); MessageBox.Show("화면 초기화중 오류가 발생했습니다.\n 담당자에게 문의하세요.", "초기화 오류", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public ChatForm(MsgrConnection connection, MiscController miscCtrl, MemberObj chatterObj) { try { InitializeComponent(); this.connection = connection; this.miscCtrl = miscCtrl; formKey = ChatUtils.GetFormKey(chatterObj.Id, ConfigHelper.Id); Initialize(); Logger.info(string.Format("채팅창생성 key[{0}]", formKey)); SetChatterOnFormOpening(chatterObj);//대화창에 참가자 노드 추가(key=id, text=name) } catch (Exception ex) { Logger.error(ex.ToString()); MessageBox.Show("화면 초기화중 오류가 발생했습니다.\n 담당자에게 문의하세요.", "초기화 오류", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <param name="chatterList">채팅가능자 조합한 키값(myid/id/id/id..)</param> public ChatForm(MsgrConnection connection, MiscController miscCtrl, List <MemberObj> groupList) { try { InitializeComponent(); this.connection = connection; this.miscCtrl = miscCtrl; List <string> userList = new List <string>(); foreach (MemberObj userObj in groupList) { if (userObj.Status != MsgrUserStatus.LOGOUT) { userList.Add(userObj.Id); } } formKey = ChatUtils.GetFormKey(userList, ConfigHelper.Id); Initialize(); Logger.info(string.Format("채팅창생성 key[{0}]", formKey)); foreach (MemberObj userObj in groupList) { if (userObj.Status != MsgrUserStatus.LOGOUT) { SetChatterOnFormOpening(userObj); } else { PostCanNotJoinMessage(userObj.Name); } } } catch (Exception ex) { Logger.error(ex.ToString()); MessageBox.Show("화면 초기화중 오류가 발생했습니다.\n 담당자에게 문의하세요.", "초기화 오류", MessageBoxButtons.OK, MessageBoxIcon.Error); } }