Newer
Older
using System.Diagnostics;
using System.Windows.Input;
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using VECTO3GUI2020.ViewModel.Implementation.Common;
using VECTO3GUI2020.ViewModel.Interfaces;
namespace VECTO3GUI2020.ViewModel.Implementation
{
public class AboutViewModel : ViewModelBase, IMainViewModel
{
#region Members
private ICommand _euplLinkClickedCommand;
private ICommand _mailClickedCommand;
private ICommand _jrcPicClickedCommand;
#endregion
#region Properties
public string EUPLLink { get; set; }
public string JRCMail { get; set; }
public string JRCPic { get; set; }
#endregion
public AboutViewModel()
{
EUPLLink = "https://joinup.ec.europa.eu/community/eupl/og_page/eupl";
JRCMail = "mailto:jrc-vecto@ec.europa.eu";
JRCPic = "http://ec.europa.eu/dgs/jrc/index.cfm";
}
#region Commands
public ICommand EUPLLinkClickedCommand
{
get
{
return _euplLinkClickedCommand ?? (_euplLinkClickedCommand = new RelayCommand(DoLinkClickedCommand));
}
}
private void DoLinkClickedCommand()
{
Process.Start(EUPLLink);
}
public ICommand MailClickedCommand
{
get { return _mailClickedCommand ?? (_mailClickedCommand = new RelayCommand(DoMailClickedCommand)); }
}
private void DoMailClickedCommand()
{
Process.Start(JRCMail);
}
public ICommand JrcPicClickedCommand
{
get { return _jrcPicClickedCommand ?? (_jrcPicClickedCommand = new RelayCommand(DoJrcPicClickedCommand)); }
}
private void DoJrcPicClickedCommand()
{
Process.Start(JRCPic);
}
#endregion
}
}