Esempio n. 1
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());
            }
        }
 /// <summary>
 /// 인스턴트 수신목록 태크 닫기 버튼 처리 : 태그폼을 닫고 해당 TransferNotiArea를 비운다.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnMouseClickToClose(object sender, MouseEventArgs e)
 {
     try
     {
         TransferNotiForms.CloseForm(this);
     }
     catch (Exception ex)
     {
         Logger.error(ex.ToString());
     }
 }
 private void OnMouseClickToShowTransferInfo(object sender, MouseEventArgs e)
 {
     try
     {
         showTransferInfoHandler = new ShowTransferInfoHandler(CrmHelper.ShowTransferInfo);
         Invoke(showTransferInfoHandler, transferObj);
         TransferNotiForms.CloseForm(this);
     }
     catch (Exception ex)
     {
         Logger.error(ex.ToString());
     }
 }
Esempio n. 4
0
        private void timerForNotify_Tick(object sender, EventArgs e)
        {
            try
            {
                timerForNotify.Stop();
                int height_point = 0;

                TransferNotiForms.AddForm(this.notiObj);
            }
            catch (Exception ex)
            {
                Logger.error(ex.ToString());
            }
        }
        private void OnMouseClickToShowCustomerPopUp(object sender, MouseEventArgs e)
        {
            try
            {
                showCustomerPopUpHandler = new ShowCustomerPopUpHandler(CrmHelper.ShowCustomerPopup);

                Invoke(showCustomerPopUpHandler, ani, CrmHelper.CallType.IN_BOUND);
                TransferNotiForms.CloseForm(this);
            }
            catch (Exception ex)
            {
                Logger.error(ex.ToString());
            }
        }
Esempio n. 6
0
        /// <summary>
        /// 수화기들었을때 팝업닫고, CRM팝업
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PopUpOnCallAnswerReceived(object sender, CustomEventArgs e)
        {
            string[] msg      = (string[])e.GetItem;
            string   ani      = msg[0];
            string   calltype = msg[1];

            Logger.info("Answer : ani[" + ani + "]calltype[" + calltype + "]nopop[" + ConfigHelper.NoPop + "]nopop_outbound[" + ConfigHelper.NoPopOutBound + "]");
            if (popform != null)
            {
                if (ConfigHelper.NoPop)
                {
                    string name = popform.Tag.ToString();
                    TransferNotiForms.AddForm(ani, name);
                }
                popform.Close();
            }
            if (!ConfigHelper.NoPop)
            {
                CrmHelper.ShowCustomerPopup(ani, calltype);
            }
        }