Пример #1
0
        private void AppSettings_GridViewSizeChangeRequested(object sender, EventArgs e)
        {
            var requestedIconSize = GetIconSize(); // Get new icon size

            // Prevents reloading icons when the icon size hasn't changed
            if (requestedIconSize != currentIconSize)
            {
                currentIconSize = requestedIconSize;     // Update icon size before refreshing
                ParentShellPageInstance.Refresh_Click(); // Refresh icons
            }
        }
Пример #2
0
        private void AppSettings_GridViewSizeChangeRequested(object sender, EventArgs e)
        {
            var iconSize = UpdateThumbnailSize(); // Get new icon size

            // Prevents reloading icons when the icon size hasn't changed
            if (iconSize != _iconSize)
            {
                _iconSize = iconSize;                    // Update icon size before refreshing
                ParentShellPageInstance.Refresh_Click(); // Refresh icons
            }
            else
            {
                _iconSize = iconSize; // Update icon size
            }
        }