source: extensions/PiwigoLib/PiwigoWpf/DTO/Helper/PwgTagWPFHelper.cs @ 12015

Last change on this file since 12015 was 12015, checked in by bayral, 13 years ago

retrieve tags list and image for a tag.

File size: 846 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Com.Piwigo.Lib.DTO;
6
7namespace Com.Piwigo.Wpf.DTO.Helper
8{
9    public static class PwgTagWPFHelper
10    {
11        public static void ConvertPwgTagToPwgTagWPF(PwgTag aPwgTag,
12                                                       ref PwgTagWPF aPwgTagWPF)
13        {
14            if (aPwgTag != null)
15            {
16                if (aPwgTagWPF == null)
17                {
18                    aPwgTagWPF = new PwgTagWPF();
19                }
20                aPwgTagWPF.Id = aPwgTag.Id;
21                aPwgTagWPF.Name = aPwgTag.Name;
22                aPwgTagWPF.Counter = aPwgTag.Counter;
23                aPwgTagWPF.UrlName = aPwgTag.UrlName;
24                aPwgTagWPF.UrlTag = aPwgTag.UrlTag;
25            }
26
27        }
28    }
29}
Note: See TracBrowser for help on using the repository browser.