2019-07-05 18:17:09 +00:00
|
|
|
|
using System;
|
|
|
|
|
using Aurora.Services;
|
|
|
|
|
|
|
|
|
|
namespace Aurora.Design.Views.Profile
|
|
|
|
|
{
|
|
|
|
|
public class ProfileViewModel : BaseViewModel
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public ProfileViewModel()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Username
|
|
|
|
|
{
|
|
|
|
|
get { return SettingsService.Instance.Username; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
SettingsService.Instance.Username = value;
|
|
|
|
|
OnPropertyChanged("Username");
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-07-06 19:52:28 +00:00
|
|
|
|
|
|
|
|
|
public string Port
|
|
|
|
|
{
|
|
|
|
|
get { return SettingsService.Instance.DefaultPort.ToString(); }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
Int32.TryParse(value, out int portNum);
|
|
|
|
|
SettingsService.Instance.DefaultPort = portNum;
|
|
|
|
|
OnPropertyChanged("Port");
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-07-05 18:17:09 +00:00
|
|
|
|
}
|
|
|
|
|
}
|