Exemplo n.º 1
0
        /// <summary>
        /// Class constructor
        /// </summary>
        public FilterMessageAddIn()
        {
            InitializeComponent();

            //Get the group chat room that is hosting this add-in
            _HostingRoom = LyncClient.GetHostingRoom();
            if (_HostingRoom != null)
            {
                //If the hosting room outgoing message filter is not enabled then enable it.
                if (_HostingRoom.IsOutgoingMessageFilterEnabled == false)
                {
                    _HostingRoom.EnableOutgoingMessageFilter();
                }

                //Register for outgoing message post events.
                _HostingRoom.IsSendingMessage += new EventHandler <RoomMessageEventArgs>(_HostingRoom_IsSendingMessage);
            }
        }