Пример #1
0
 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;
 }
Пример #2
0
 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;
 }