private void axArcReaderControl1_OnCurrentViewChanged(object sender, ESRI.ArcGIS.PublisherControls.IARControlEvents_OnCurrentViewChangedEvent e)
        {
            bool enabled;

            //Set the current tool
            if (axArcReaderControl1.CurrentViewType == esriARViewType.esriARViewTypeNone)
            {
                enabled = false;
            }
            else if (axArcReaderControl1.CurrentViewType == esriARViewType.esriARViewTypePageLayout)
            {
                enabled = false;
                if (axArcReaderControl1.CurrentARTool != esriARTool.esriARToolNoneSelected)
                {
                    axArcReaderControl1.CurrentARTool = esriARTool.esriARToolNoneSelected;
                }
            }
            else
            {
                enabled = true;
                if (axArcReaderControl1.CurrentARTool != esriARTool.esriARToolMapZoomIn)
                {
                    optTool0.Checked = true;
                }
            }

            //Enable\disable controls
            cmdQuery.Enabled      = enabled;
            optTool0.Enabled      = enabled;
            optTool1.Enabled      = enabled;
            optTool2.Enabled      = enabled;
            cmdFullExtent.Enabled = enabled;
        }
        private void axArcReaderControl1_OnCurrentViewChanged(object sender, ESRI.ArcGIS.PublisherControls.IARControlEvents_OnCurrentViewChangedEvent e)
        {
            bool bEnabled = false;

            //Determine view type
            if (axArcReaderControl1.CurrentViewType != esriARViewType.esriARViewTypeNone)
            {
                bEnabled = true;
                //Update the current tool if necessary
                if (axArcReaderControl1.CurrentARTool != arTool)
                {
                    axArcReaderControl1.CurrentARTool = arTool;
                }
            }

            //Enable/ disable controls
            optTool0.Enabled      = bEnabled;
            optTool1.Enabled      = bEnabled;
            optTool2.Enabled      = bEnabled;
            cmdFullExtent.Enabled = bEnabled;
        }