private void RemoveDevice(TeamCityDeviceViewModel deviceVm)
 {
     teamCityConfiguration.RemoveDevice(deviceVm.Device);
     Devices.Remove(deviceVm);
 }
 private void InputConfigurationControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     viewModel = (TeamCityDeviceViewModel)e.NewValue;
     PasswordInput.Password = viewModel.Password;
 }
 private bool CanRemoveDevice(TeamCityDeviceViewModel deviceInfo)
 {
     return deviceInfo != null;
 }