source: extensions/PiwigoLib/PiwigoWpf/DTO/Helper/PwgSessionWPFHelper.cs @ 11911

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

WPF inprovement

File size: 959 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 PwgSessionWPFHelper
10    {
11        public static void AddPwgSessionInfoToPwgSessionWPF(PwgSession aPwgSession, ref PwgSessionWPF aPwgSessionWPF)
12        {
13            if (aPwgSession != null)
14            {
15                if (aPwgSessionWPF == null)
16                {
17                    aPwgSessionWPF = new PwgSessionWPF();
18                }
19                aPwgSessionWPF.IsConnected = aPwgSession.IsConnected;
20                aPwgSessionWPF.UserName = aPwgSession.UserName;
21                aPwgSessionWPF.Status = aPwgSession.Status;
22                aPwgSessionWPF.Template = aPwgSession.Template;
23                aPwgSessionWPF.Theme = aPwgSession.Theme;
24                aPwgSessionWPF.CharSet = aPwgSession.CharSet;
25            }
26        }
27    }
28}
Note: See TracBrowser for help on using the repository browser.