示例#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();
 }