示例#1
0
        /// <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);
            }
        }
示例#2
0
 public Notice(MsgrConnection connection, NoticeObj obj)
 {
     InitializeComponent();
     this.connection = connection;
     this.obj = obj;
     SetNoticeInfo();
 }
示例#3
0
        /// <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);
            }
        }
示例#4
0
        /// <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);
            }
        }
示例#5
0
 public Notice(MsgrConnection connection, NoticeObj obj)
 {
     InitializeComponent();
     this.connection = connection;
     this.obj        = obj;
     SetNoticeInfo();
 }
示例#6
0
 public Notice(MsgrConnection connection, string[] msgToken)
 {
     InitializeComponent();
     this.connection = connection;
     obj             = new NoticeObj(msgToken);
     SetNoticeInfo();
 }
示例#7
0
 public SendMemoForm(MsgrConnection connection, List <MemberObj> receiverList)
 {
     InitializeComponent();
     this.connection   = connection;
     this.receiverList = receiverList;
     Initialize();
 }
示例#8
0
 public SendMemoForm(MsgrConnection connection, List<MemberObj> receiverList)
 {
     InitializeComponent();
     this.connection = connection;
     this.receiverList = receiverList;
     Initialize();
 }
示例#9
0
 public Notice(MsgrConnection connection, string[] msgToken)
 {
     InitializeComponent();
     this.connection = connection;
     obj = new NoticeObj(msgToken);
     SetNoticeInfo();
 }
示例#10
0
 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;
 }
示例#11
0
 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;
 }
示例#12
0
 /// <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();
 }
示例#13
0
 public SendMemoForm(MsgrConnection connection, MemberObj userObj)
 {
     InitializeComponent();
     this.connection = connection;
     if (userObj != null)
         this.receiverList.Add(userObj);
     Initialize();
 }
示例#14
0
 public DownloadForm(MsgrConnection connection, FTPRcvObj info)
 {
     InitializeComponent();
     this.connection = connection;
     this.rcvObj     = info;
     this.formKey    = info.Key;
     Initialize();
 }
示例#15
0
 public DownloadForm(MsgrConnection connection, FTPRcvObj info)
 {
     InitializeComponent();
     this.connection = connection;
     this.rcvObj = info;
     this.formKey = info.Key;
     Initialize();
 }
示例#16
0
 /// <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();
 }
示例#17
0
 //파일이 선택된경우 바로 실행
 public SendFileForm(MsgrConnection connection, MemberObj receiver, string fileName, bool autoStart)
     : this(connection, receiver, fileName)
 {
     if (fileName != null && !fileName.Equals("") && autoStart)
     {
         _StartFileSending();
         ButtonFileSelect.Enabled = false;
     }
 }
示例#18
0
 //파일이 선택된경우 바로 실행
 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);
 }
示例#21
0
        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());
            }
        }
示例#22
0
        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());
            }
        }
示例#23
0
 public SendMemoForm(MsgrConnection connection, MemberObj userObj)
 {
     InitializeComponent();
     this.connection = connection;
     if (userObj != null)
     {
         this.receiverList.Add(userObj);
     }
     Initialize();
 }
示例#24
0
 //파일이 선택된경우 바로 실행
 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;
     }
 }
示例#25
0
 //파일이 선택된경우 바로 실행
 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;
     }
 }
示例#26
0
 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);
     }
 }
示例#27
0
 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);
     }
 }
示例#28
0
 /// <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);
 }
示例#29
0
 /// <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);
 }
示例#30
0
        /// <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);
            }
        }
示例#31
0
 public MemoListForm(MsgrConnection connection, List<MemoObj> list)
 {
     InitializeComponent();
     this.connection = connection;
     this.list = list;
 }
示例#32
0
 public NoticeListForm(MsgrConnection connection)
 {
     InitializeComponent();
     this.connection = connection;
 }
示例#33
0
 public SendMemoForm(MsgrConnection connection)
 {
     InitializeComponent();
     this.connection = connection;
     Initialize();
 }
示例#34
0
 public SendMemoForm(MsgrConnection connection)
 {
     InitializeComponent();
     this.connection = connection;
     Initialize();
 }
示例#35
0
 public MemoListForm(MsgrConnection connection, List <MemoObj> list)
 {
     InitializeComponent();
     this.connection = connection;
     this.list       = list;
 }
示例#36
0
 public NoticeListForm(MsgrConnection connection)
 {
     InitializeComponent();
     this.connection = connection;
 }
 public NoReceiveBoardForm(MsgrConnection connection)
 {
     InitializeComponent();
     labelColorInit = label_notice.ForeColor;
     this.connection = connection;
 }
示例#38
0
 public NoReceiveBoardForm(MsgrConnection connection)
 {
     InitializeComponent();
     labelColorInit  = label_notice.ForeColor;
     this.connection = connection;
 }