protected override void OnBeforePopUp(object sender, EventArgs e)
        {
            if (m_ChoiceControl == null)
            {
                m_ChoiceControl = GetChoiceControl();
                m_ChoiceControl.ApplySelection += new EventHandler(m_ChoiceControl_ApplySelection);
                m_ChoiceControl.SelectedItemChanged += new EventHandler<ItemEventArgs>(m_ChoiceControl_SelectedItemChanged);

                ContentControl = m_ChoiceControl;
                PopUpContainer.PopupControl.Caption = Localization.LevelChoice_Caption + "...";
            }

            UpdateButtonsState();

            BeforePopUp();

            if (NeedReload)
            {
                m_ChoiceControl.URL = URL;
                m_ChoiceControl.Connection = m_AConnection;
                m_ChoiceControl.CubeName = m_ACubeName;
                m_ChoiceControl.DimensionUniqueName = m_ADimensionUniqueName;
                m_ChoiceControl.HierarchyUniqueName = m_AHierarchyUniqueName;

                m_ChoiceControl.Initialize();
                NeedReload = false;
            }
            
            base.OnBeforePopUp(sender, e);
        }
        protected override void OnBeforePopUp(object sender, EventArgs e)
        {
            if (m_ChoiceControl == null)
            {
                m_ChoiceControl = GetChoiceControl();
                m_ChoiceControl.ApplySelection      += new EventHandler(m_ChoiceControl_ApplySelection);
                m_ChoiceControl.SelectedItemChanged += new EventHandler <ItemEventArgs>(m_ChoiceControl_SelectedItemChanged);

                ContentControl = m_ChoiceControl;
                PopUpContainer.PopupControl.Caption = Localization.LevelChoice_Caption + "...";
            }

            UpdateButtonsState();

            BeforePopUp();

            if (NeedReload)
            {
                m_ChoiceControl.URL                 = URL;
                m_ChoiceControl.Connection          = m_AConnection;
                m_ChoiceControl.CubeName            = m_ACubeName;
                m_ChoiceControl.DimensionUniqueName = m_ADimensionUniqueName;
                m_ChoiceControl.HierarchyUniqueName = m_AHierarchyUniqueName;

                m_ChoiceControl.Initialize();
                NeedReload = false;
            }

            base.OnBeforePopUp(sender, e);
        }