Example #1
0
        /// <summary>
        /// Set/reset the object's 'site' which is used to get/set various plugin
        /// properties later on
        /// </summary>
        /// <param name="site">The site object, null when the site is reset</param>
        public void SetSite(Object site)
        {
            displaySite = (IGoogleDesktopDisplaySite)site;

            if (displaySite != null)
            {
                // start adding data since we are completely initialized
                StartShowingContent();
            }
            else
            {
                // no more adding data as we are in uninitialized state
                StopShowingContent();
            }
        }
Example #2
0
        /// <summary>
        /// Set/reset the object's 'site' which is used to get/set various plugin 
        /// properties later on
        /// </summary>
        /// <param name="site">The site object, null when the site is reset</param>
        public void SetSite(Object site)
        {
            displaySite = (IGoogleDesktopDisplaySite)site;

              if (displaySite != null) {
            // start adding data since we are completely initialized
            StartShowingContent();
              } else {
            // no more adding data as we are in uninitialized state
            StopShowingContent();
              }
        }