/// ------------------------------------------------------------------------------------
        /// <summary>
        ///
        /// </summary>
        /// ------------------------------------------------------------------------------------
        protected bool OnViewOpened(object args)
        {
            if (!(args is XYChartVw))
            {
                return(false);
            }

            try
            {
                m_view   = args as XYChartVw;
                m_xyGrid = ReflectionHelper.GetField(m_view, "m_xyGrid") as XYGrid;
                //m_xyGrid.CellBeginEdit += m_xyGrid_CellBeginEdit;
                //m_xyGrid.ColumnRemoved += m_xyGrid_ColumnRemoved;
                //m_xyGrid.RowsRemoved += m_xyGrid_RowsRemoved;
                SetupAutoFillMarkerMenus();
                SetupAddOnToolbarButtons();
            }
            catch { }

            return(false);
        }
        /// ------------------------------------------------------------------------------------
        /// <summary>
        ///
        /// </summary>
        /// ------------------------------------------------------------------------------------
        protected bool OnViewOpened(object args)
        {
            try
            {
                if (args.GetType() == typeof(PaMainWnd))
                {
                    m_mainWnd = args as PaMainWnd;
                }
                else if (args.GetType() == typeof(DataCorpusVw))
                {
                    m_dataCorpusVw = args as DataCorpusVw;
                }
                else if (args.GetType() == typeof(SearchVw))
                {
                    m_findPhoneWnd = args as SearchVw;
                }
                else if (args.GetType() == typeof(ConsonantChartVw))
                {
                    m_consonantChartWnd = args as ConsonantChartVw;
                }
                else if (args.GetType() == typeof(VowelChartVw))
                {
                    m_vowelChartWnd = args as VowelChartVw;
                }
                else if (args.GetType() == typeof(XYChartVw))
                {
                    m_xyChartWnd = args as XYChartVw;
                }
                else if (args.GetType() == typeof(PhoneInventoryVw))
                {
                    m_phoneInventoryWnd = args as PhoneInventoryVw;
                }
            }
            catch { }

            return(false);
        }