/// <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 Notice(MsgrConnection connection, NoticeObj obj) { InitializeComponent(); this.connection = connection; this.obj = obj; SetNoticeInfo(); }
/// <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="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); } }
public Notice(MsgrConnection connection, string[] msgToken) { InitializeComponent(); this.connection = connection; obj = new NoticeObj(msgToken); SetNoticeInfo(); }
public SendMemoForm(MsgrConnection connection, List <MemberObj> receiverList) { InitializeComponent(); this.connection = connection; this.receiverList = receiverList; Initialize(); }
public SendMemoForm(MsgrConnection connection, List<MemberObj> receiverList) { InitializeComponent(); this.connection = connection; this.receiverList = receiverList; Initialize(); }
public MemoForm(MsgrConnection connection, MemoObj obj) { InitializeComponent(); this.connection = connection; this.obj = obj; this.Text = Members.GetByUserId(obj.SenderId).Name + "님의 쪽지"; this.richTextBoxMemo.Text = obj.Content; }
/// <summary> /// 메신저: 트리에서 대상자선택 /// 0명: 에러 /// 1명: 띄움 /// 2+명: 파일선택 먼저 하고 띄움 /// 채팅창: 상대방선택 /// 0명: 에러 /// 1명: 띄움 /// </summary> /// <param name="connection"></param> /// <param name="receiver"></param> public SendFileForm(MsgrConnection connection, MemberObj receiver) { InitializeComponent(); this.connection = connection; this.formKey = DateTime.Now.ToLongTimeString(); this.receiverObj = receiver; Initialize(); }
public SendMemoForm(MsgrConnection connection, MemberObj userObj) { InitializeComponent(); this.connection = connection; if (userObj != null) this.receiverList.Add(userObj); Initialize(); }
public DownloadForm(MsgrConnection connection, FTPRcvObj info) { InitializeComponent(); this.connection = connection; this.rcvObj = info; this.formKey = info.Key; Initialize(); }
//파일이 선택된경우 바로 실행 public SendFileForm(MsgrConnection connection, MemberObj receiver, string fileName, bool autoStart) : this(connection, receiver, fileName) { if (fileName != null && !fileName.Equals("") && autoStart) { _StartFileSending(); ButtonFileSelect.Enabled = false; } }
public FileSendDetailListView(MsgrConnection connection, string formKey, List<MemberObj> receiverList) { InitializeComponent(); this.connection = connection; this.formKey = formKey; this.receiverList = receiverList; Initialize(); FileSendDetailListViews.AddForm(formKey, this); }
public FileSendDetailListView(MsgrConnection connection, string formKey, List <MemberObj> receiverList) { InitializeComponent(); this.connection = connection; this.formKey = formKey; this.receiverList = receiverList; Initialize(); FileSendDetailListViews.AddForm(formKey, this); }
public Client_Form() { try { // // Windows Form 디자이너 지원에 필요합니다. // InitializeComponent(); ConfigHelper.Initialize(); Members.Initialize(); LogFileCheck(); connection = new MsgrConnection(this); //<--- 로그인접속 connection.TeamListReceived += this.GenerateTeamTreeOnTeamListReceived; connection.TeamListReceiveDone += this.ProcessOnTeamListReceiveDone; connection.MemberStatusReceived += this.ChangeStatusOnMemberStatusReceived; connection.LoginFailed += this.ProcessOnLoginFailed; connection.LoginPassed += this.ProcessOnLoginPassed; connection.LoginDupped += this.ProcessOnLoginDupped; connection.ForcedLogoutNotified += this.LogoutOnForcedLogoutNotified; connection.ServerCheckSucceeded += this.DisplayLoginOnServerCheckSucceeded; connection.ServerCheckFailed += this.DisplayLogOutOnServerCheckFailed; // 로그인접속---> connection.NoticeResultFromDBReceived += this.DisplayOnNoticeResultFromDBReceived; connection.MemoMsgReceived += this.CreateMemoFormOnMemoMsgReceived; connection.NewChatMsgReceived += this.OpenNewChatFormOnMsgReceived; connection.NoticeCheckNotified += this.AddNoticeCheckUserOnNotified; // <--- FTP --- connection.FTPSendingNotified += this.ShowDownloadFormOnFTPInfoReceived; // --- FTP ---> // <--- 공지 connection.InstantNoticeReceived += this.PopUpNoticeOnInstantNoticeReceived; connection.UnCheckedDataReceived += this.PopUpOnUnCheckedDataReceived; connection.UnCheckedMemoReceived += this.PopUpListOnUnCheckedMemoReceived; connection.UnCheckedNoticeReceived += this.PopUpListOnUnCheckedNoticeReceived; connection.UnCheckedTransferReceived += this.PopUpListOnUnCheckedTransferReceived; connection.NoticeListReceived += this.DisplayFormOnNoticeListReceived; connection.CustomerInfoTransfered += this.PopUpNotifyOnCustomerInfoTransfered; // 공지 ---> // <--- CallControl connection.CallRingingReceived += this.PopUpOnCallRingingReceived; connection.CallAnswerReceived += this.PopUpOnCallAnswerReceived; connection.CallDialingReceived += this.PopUpOnCallAnswerReceived; connection.CallOtherAnswerReceived += this.PopUpCloseOnCallOtherAnswerReceived; connection.CallAbandonReceived += this.PopUpCloseOnCallAbandonReceived; // CallControl ---> Microsoft.Win32.SystemEvents.SessionEnding += new Microsoft.Win32.SessionEndingEventHandler(SystemEvents_SessionEnding); TransferNotiForms.Initialize(); } catch (Exception ex) { Logger.error(ex.ToString()); } }
public SendMemoForm(MsgrConnection connection, MemberObj userObj) { InitializeComponent(); this.connection = connection; if (userObj != null) { this.receiverList.Add(userObj); } Initialize(); }
//파일이 선택된경우 바로 실행 public SendFileForm(MsgrConnection connection, MemberObj receiver, string fileName) : this(connection, receiver) { if (fileName != null && !fileName.Equals("")) { sendFile = new FileInfo(fileName); SelectFile(); _StartFileSending(); ButtonFileSelect.Enabled = false; } }
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); } }
/// <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); }
/// <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); } }
public MemoListForm(MsgrConnection connection, List<MemoObj> list) { InitializeComponent(); this.connection = connection; this.list = list; }
public NoticeListForm(MsgrConnection connection) { InitializeComponent(); this.connection = connection; }
public SendMemoForm(MsgrConnection connection) { InitializeComponent(); this.connection = connection; Initialize(); }
public MemoListForm(MsgrConnection connection, List <MemoObj> list) { InitializeComponent(); this.connection = connection; this.list = list; }
public NoReceiveBoardForm(MsgrConnection connection) { InitializeComponent(); labelColorInit = label_notice.ForeColor; this.connection = connection; }