private void Button_Click(object sender, RoutedEventArgs e) { var hostname = boxHostname.Text; var username = boxUsername.Text; var password = boxPassword.Password; FileProviderManager.CreateFileProvider(hostname, username, password); }
private void Button_Click(object sender, RoutedEventArgs e) { var hostname = boxHostname.Text; var username = boxUsername.Text; var password = boxPassword.Password; if (!int.TryParse(boxPort.Text, out var port)) { port = 22; } FileProviderManager.CreateFileProvider(hostname, username, password, port); }