Esempio n. 1
0
        private void UpdateVMMessages()
        {
            // We can update this compoent only if we are in the from thread
            if (tbVoiceMessagePhoneNumber.InvokeRequired)
            {
                VoidDelegate d = new VoidDelegate(UpdateVMMessages);
                this.Invoke(d, null);
            }
            else
            {
                // Check if PBX uses is an OXO system or not
                // Some Voice Message features are available only on OXO
                PbxAgentInfo pbxAgentInfo = rainbowTelephony.GetPBXAgentInformation();
                Boolean      isOXO        = pbxAgentInfo.IsOXO;

                lblVMInfo.Visible = (!isOXO);

                int nb = 0;
                if (voiceMessagesList != null)
                {
                    nb = voiceMessagesList.Count();
                }

                btVMDownload.Enabled = btVMDelete.Enabled = cbVoiceMessages.Enabled = (nb > 0);
            }
        }