/// <summary> /// Does the preview. /// </summary> /// <param name="selectedFilePath">The selected file path.</param> public void DoPreview(string selectedFilePath) { // Load the icons. try { var multiIcon = new MultiIcon(); multiIcon.Load(selectedFilePath); // Add the icon images. foreach (var iconImage in multiIcon.SelectMany(singleIcon => singleIcon)) iconImages.Add(iconImage); // Add the icons to the control. AddIconsToControl(); } catch { // Maybe we could show something to the user in the preview // window, but for now we'll just ignore any exceptions. } }
/// <summary> /// Does the preview. /// </summary> /// <param name="selectedFilePath">The selected file path.</param> public void DoPreview(string selectedFilePath) { // Load the icons. try { var multiIcon = new MultiIcon(); multiIcon.Load(selectedFilePath); // Add the icon images. foreach (var iconImage in multiIcon.SelectMany(singleIcon => singleIcon)) { iconImages.Add(iconImage); } // Add the icons to the control. AddIconsToControl(); } catch { // Maybe we could show something to the user in the preview // window, but for now we'll just ignore any exceptions. } }