Beispiel #1
0
        private void UpdatePreview()
        {
            IEntry entry = (IEntry)treEntries.SelectedNode?.Tag;

            _gameHandlerPages = _gameHandler.GeneratePreviews(entry);
            SetPage(0);

            if (entry != null && _gameHandler.HandlerCanGeneratePreviews && Settings.Default.PreviewEnabled && _gameHandlerPages.Count > 0)
            {
                pbxPreview.Image = _gameHandlerPages[_page];
            }
            else
            {
                pbxPreview.Image = null;
            }
        }