Esempio n. 1
0
        /// <summary>
        /// Creates control hierarchy
        /// </summary>
        protected void CreateControlHierarchy()
        {
            if (loginButton == null)
            {
                loginButton    = new YahooLoginButton();
                loginButton.ID = "loginButton";
            }
            if (logoutButton == null)
            {
                logoutButton    = new YahooLogoutButton();
                logoutButton.ID = "logoutButton";
            }

            Controls.Add(loginButton);
            Controls.Add(logoutButton);
        }
        /// <summary>
        /// Creates control hierarchy
        /// </summary>
        protected void CreateControlHierarchy()
        {
            if (loginButton == null)
            {
                loginButton = new YahooLoginButton();
                loginButton.ID = "loginButton";
            }
            if (logoutButton == null)
            {
                logoutButton = new YahooLogoutButton();
                logoutButton.ID = "logoutButton";
            }

            Controls.Add(loginButton);
            Controls.Add(logoutButton);
        }