Пример #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);
        }
Пример #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);
        }
Пример #3
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     FileProviderManager.StopAllFileProviders();
 }