예제 #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());
            }
        }