private void InitializeKeepAliveService(VoiceProfileViewModel viewModel) { var settings = new FormAppSettings { Host = viewModel.IpAddress, PingEnabled = viewModel.PingEnabled, }; this.pingService = new PingService(settings, this.progressCallback); }
private void InitializeTerminalClient(VoiceProfileViewModel viewModel) { var settings = new FormAppSettings { Host = viewModel.IpAddress, UserName = viewModel.UserName, Password = viewModel.Password, Port = this.appSettings.Port, TimeoutSeconds = this.appSettings.TimeoutSeconds, VirtualScreenHeight = this.appSettings.VirtualScreenHeight, VirtualScreenWidth = this.appSettings.VirtualScreenWidth }; this.telnet = new Telnet(settings, this.progressCallback); }