Exemplo n.º 1
0
 /// <summary>
 /// Called when the plugin's display state changes
 /// </summary>
 /// <param name="displayState">The new display state</param>
 public void OnDisplayStateChange(GoogleDesktopDisplayTileDisplayState displayState)
 {
     if (displayState == GoogleDesktopDisplayTileDisplayState.GDD_TILE_DISPLAY_STATE_MINIMIZED ||
         displayState == GoogleDesktopDisplayTileDisplayState.GDD_TILE_DISPLAY_STATE_RESTORED)
     {
         // switching between minimized and normal mode, so update the title
         UpdateTitle();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Called when the plugin's display state changes
 /// </summary>
 /// <param name="displayState">The new display state</param>
 public void OnDisplayStateChange(GoogleDesktopDisplayTileDisplayState displayState)
 {
     if (displayState == GoogleDesktopDisplayTileDisplayState.GDD_TILE_DISPLAY_STATE_MINIMIZED ||
       displayState == GoogleDesktopDisplayTileDisplayState.GDD_TILE_DISPLAY_STATE_RESTORED) {
     // switching between minimized and normal mode, so update the title
     UpdateTitle();
       }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Called when the plugin's display state changes
        /// </summary>
        /// <param name="displayState">The new display state</param>
        public new void OnDisplayStateChange(GoogleDesktopDisplayTileDisplayState displayState)
        {
            Log.Debug("Display State Changed");
            if (displayState == GoogleDesktopDisplayTileDisplayState.GDD_TILE_DISPLAY_STATE_MINIMIZED ||
                displayState == GoogleDesktopDisplayTileDisplayState.GDD_TILE_DISPLAY_STATE_RESTORED)
            {
                // switching between minimized and normal mode, so update the title
                UpdateTitle();
            }

            if (displayState == GoogleDesktopDisplayTileDisplayState.GDD_TILE_DISPLAY_STATE_POPPED_OUT ||
                displayState == GoogleDesktopDisplayTileDisplayState.GDD_TILE_DISPLAY_STATE_RESIZED)
            {
                ClearAndAddFreshItems();
            }
        }