Rev | Line | |
---|
[11904] | 1 | using System; |
---|
| 2 | using System.Collections.Generic; |
---|
| 3 | using System.Linq; |
---|
| 4 | using System.Text; |
---|
| 5 | using Com.Piwigo.Lib.DTO; |
---|
| 6 | |
---|
| 7 | namespace Com.Piwigo.Wpf.DTO.Helper |
---|
| 8 | { |
---|
| 9 | public static class PwgImageListWPFHelper |
---|
| 10 | { |
---|
| 11 | public static void AddPwgImageToList(PwgImage aPwgImage, |
---|
| 12 | ref PwgImageListWPF aPwgImageListWPF) |
---|
| 13 | { |
---|
| 14 | if (aPwgImage != null) |
---|
| 15 | { |
---|
| 16 | if (aPwgImageListWPF == null) |
---|
| 17 | { |
---|
| 18 | aPwgImageListWPF = new PwgImageListWPF(); |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | PwgImageWPF pwgImg = new PwgImageWPF(); |
---|
| 22 | PwgImageWPFHelper.ConvertPwgImageToPwgImageWPF(aPwgImage, ref pwgImg); |
---|
| 23 | |
---|
| 24 | aPwgImageListWPF.Add(pwgImg); |
---|
| 25 | } |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | public static void ConvertPwgImageListToPwgImageListWPF(List<PwgImage> aPwgImageList, ref PwgImageListWPF aPwgImageListWPF) |
---|
| 29 | { |
---|
| 30 | if (aPwgImageList != null) |
---|
| 31 | { |
---|
| 32 | foreach (PwgImage pwgImg in aPwgImageList) |
---|
| 33 | { |
---|
| 34 | AddPwgImageToList(pwgImg, ref aPwgImageListWPF); |
---|
| 35 | } |
---|
| 36 | } |
---|
| 37 | } |
---|
| 38 | } |
---|
| 39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.