Example #1
0
        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);
        }
Example #2
0
        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);
        }