Exemplo n.º 1
0
        private void UpdatePreview()
        {
            IEntry entry = (IEntry)treEntries.SelectedNode?.Tag;

            if (entry != null && _gameHandler.HandlerCanGeneratePreviews && Settings.Default.PreviewEnabled)
            {
                pbxPreview.Image = _gameHandler.GeneratePreview(entry.EditedText);
            }
            else
            {
                pbxPreview.Image = null;
            }
        }