public void UpdateDetails() { if (Metrics != null) { Metrics.PropertyChanged -= Server_PropertyChanged; } Metrics = Vif.Connection.Resolve(Vif.metrics); if (Metrics != null) { Metrics.PropertyChanged += Server_PropertyChanged; } ImageCell.Value = Properties.Resources._000_Network_h32bit_16; DeviceCell.Value = Vif.device; MacCell.Value = Helpers.GetMacString(Vif.MAC); LimitCell.Value = Vif.qos_algorithm_type != ""? Vif.LimitString:""; NetworkCell.Value = Vif.NetworkName(); IpCell.Value = Vif.IPAddress(); AttachedCell.Value = Vif.currently_attached ? Messages.YES : Messages.NO; }