public void InitiateConfiguration(Control container, string configuration) { config = FTPConfig.Load(configuration); gui = new FTPConfigSelector(config); gui.Dock = DockStyle.Fill; gui.btnTestSettings.Click += btnTestSettings_Click; container.Controls.Add(gui); }
public IBackupTarget Prepare(string configuration) { return(new FTPTarget { config = FTPConfig.Load(configuration) }); }