public TeamCityDeviceViewModel(TeamCityDevice teamCityDevice)
        {
            this.teamCityDevice = teamCityDevice;
            IsEditable = teamCityDevice != null;

            TestConnectionCommand = new DelegateCommand(TestConnection, CanTestConnection);
        }
 private void AddDevice()
 {
     var deviceInfo = new TeamCityDevice
     {
         Id = Guid.NewGuid(),
         Name = "New"
     };
     teamCityConfiguration.AddDevice(deviceInfo);
     Devices.Add(new TeamCityDeviceViewModel(deviceInfo));
 }
 public TeamCityInputSelectorViewModel(TeamCityDevice device)
 {
     connection = new TeamCityConnection(device);
 }