Пример #1
0
        /// <summary>
        /// Builds the three public button lists
        /// </summary>
        protected override void BuildButtonLists()
        {
            if (CustomizeButton != null)
            {
                ButtonListAdmin.Add(CustomizeButton);
            }

            base.BuildButtonLists();
        }
        // end of addition

        #endregion

        #region Overrriden parent methods

        // Added by Hongwei Shen([email protected]) 10/9/2005
        // for supporting version comparison
        /// <summary>
        /// Override to add the Compare button to the button list
        /// </summary>
        protected override void BuildButtonLists()
        {
            // add Compare button
            if (CompareButton != null)
            {
                ButtonListAdmin.Add(_btnCompare);
                if (IsComparing == -1)
                {
                    // it is the time to toggle the buttons
                    // manully
                    IsComparing = 1;
                }
            }
            base.BuildButtonLists();
        }