Example #1
0
        private void CleanUp()
        {
            if (null != this.m_PhoneTimer)
            {
                this.m_PhoneTimer.Stop();
                this.m_PhoneTimer.MyElapsed -= m_PhoneTimer_Elapsed;
                this.m_PhoneTimer.Dispose();
                this.m_PhoneTimer = null;
            }

            if (null != m_MutePhone)
            {
                this.m_MutePhone.Dispose();
                this.m_MutePhone = null;
            }

            if (null != m_UnmutePhone)
            {
                this.m_UnmutePhone.Dispose();
                this.m_UnmutePhone = null;
            }

            if (null != m_ReactOnCall)
            {
                m_ReactOnCall.Dispose();
                m_ReactOnCall = null;
            }

            if (null != m_CallNumber)
            {
                m_CallNumber.Dispose();
                m_CallNumber = null;
            }

            if (null != m_AudioRecorderViewModel)
            {
                m_AudioRecorderViewModel.Dispose();
                m_AudioRecorderViewModel = null;
            }
        }