{
private string _hostname;
public string Hostname
{
get { return _hostname; }
set
{
if (_hostname == value)
return;
_hostname = value;
this.OnPropertyChanged("Hostname");
}
}
private string _ping;
public string Ping
{
get { return _ping; }
set
{
if (_ping == value)
return;
_ping = value;
this.OnPropertyChanged("Ping");
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName = "")
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
Обсуждают сегодня