Пример #1
0
        public Configuration(FtpConnectionSettings InFtp)
        {
            InitializeComponent();

            InFtpSrettings = InFtp;

            TempFtpSettings = new FtpConnectionSettings();
            TempFtpSettings.CloneFrom(InFtp);

            InFtpHostname.Text      = TempFtpSettings.Hostname;
            InFtpPort.Text          = TempFtpSettings.Port.ToString();
            InFtpUsername.Text      = TempFtpSettings.UserLogin;
            InFtpPassword.Text      = TempFtpSettings.UserPassword;
            CheckFtpSsl.Checked     = TempFtpSettings.UseSsl;
            EnableUnixListing.Value = TempFtpSettings.UnixListing ? 1 : 0;
        }
Пример #2
0
 private void ButtonAccept_Click(object sender, EventArgs e)
 {
     InFtpSrettings.CloneFrom(TempFtpSettings);
     Close();
 }