public void ApplySettings(Settings settings) { this.settings = settings; ftp.ServerAddress = settings.address; ftp.UserName = settings.user; ftp.Password = settings.pass; this.hostRootDir = settings.ftpPath; this.localRootDir = settings.destinationPath; }
private Settings getSettings() { Settings s = new Settings(); s.address = txtAddress.Text; s.user = txtUser.Text; s.pass = txtPass.Text; s.destinationPath = txtDestDir.Text; s.ftpPath = txtFTPdir.Text; return s; }