Revision 4b0a2fc0 trunk/Pithos.Client.WPF/Shell/AboutViewModel.cs

b/trunk/Pithos.Client.WPF/Shell/AboutViewModel.cs
5 5
// -----------------------------------------------------------------------
6 6

  
7 7
using System.ComponentModel.Composition;
8
using System.Reflection;
8 9
using Caliburn.Micro;
9 10

  
10 11
namespace Pithos.Client.WPF.Shell
......
13 14
    using System.Collections.Generic;
14 15
    using System.Linq;
15 16
    using System.Text;
16

  
17
    
17 18
    /// <summary>
18 19
    /// TODO: Update summary.
19 20
    /// </summary>
20 21
    [Export(typeof(AboutViewModel))]
21 22
    public class AboutViewModel:Screen
22 23
    {
23
        private string _version;
24 24
        public string Version { get; set; }
25
/*
25

  
26
        public string Released { get; set; }
27

  
28
        public Uri SupportPage { get; set; }
29

  
30
        public AboutViewModel()
26 31
        {
27
            get { return _version; }
28
            set
29
            {
30
                _version = value;
31
                NotifyOfPropertyChange(()=>Version);
32
            }
32
            var attributes=Assembly.GetExecutingAssembly().GetCustomAttributes(false);
33
            var versionAtt = attributes.OfType<AssemblyInformationalVersionAttribute>().First();
34
            var fileVersion = attributes.OfType<AssemblyFileVersionAttribute>().First();
35

  
36
            Released = versionAtt.InformationalVersion;
37
            Version = fileVersion.Version;
33 38
        }
34
*/
35 39

  
36
        private DateTime _released;
37
        public DateTime Released { get; set; }
38
/*
40
        public void Close()
39 41
        {
40
            get { return _released; }
41
            set
42
            {
43
                _released = value;
44
                NotifyOfPropertyChange(()=>Released);
45
            }
42
            this.TryClose();
46 43
        }
47
*/
48

  
49
        public Uri SupportPage { get; set; }
50 44
    }
51 45
}

Also available in: Unified diff