private void Connect() { LoadConfig(); _ftpService = new FtpService(_config.Ftp.Host, _config.Ftp.Port, _config.Ftp.Username, _config.Ftp.Password, _config.Ftp.KeepAlive); ActualDir = _ftpService.Pwd(); if (_ftpService.Connected) { ConnectionStatusDescription = "Połączono"; ConnectionStatusColor = Brushes.Green; ListActual(); } }