资源简介
计算机网络的课程设计-FTP客户端-基于C#实现-所有源代码和项目文件

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.xml;
using System.IO;
using System.Text.Regularexpressions;
namespace FTP客户端
{
public partial class Form1 : Form
{
xmlDocument xml;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender EventArgs e)
{
xml = new xmlDocument();
try
{
xml.Load(“server.xml“);
}
catch//(FileNotFoundException ex)
{
FileStream fs = File.Create(“server.xml“);
string str=“l version=\“1.0\“?>\r\n\r\n “;
fs.Write(ASCIIEncoding.UTF8.GetBytes(str) 0 str.Length);
fs.Close();
xml.Load(“server.xml“);
}
xmlNodeList list = xml.GetElementsByTagName(“name“);
if(list.Count>0)
foreach (xmlNode node in list)
comboBox_server.Items.Add(node.InnerText);
}
private void button_login_Click(object sender EventArgs e)
{
if(!comboBox_server.Text.StartsWith(“ftp://“)) comboBox_server.Text=“ftp://“+comboBox_server.Text;
if (xml.SelectSingleNode(@“/root/server[name=‘“ + comboBox_server.Text + “‘]“) == null)
{
xmlNode rootnode = xml.SelectSingleNode(“//root“);
xmlElement server = xml.CreateElement(“server“);
xmlElement name = xml.CreateElement(“name“);
name.InnerText = comboBox_server.Text;
xmlElement user = xml.CreateElement(“user“);
user.InnerText = textBox_user.Text;
xmlElement pswd = xml.CreateElement(“password“);
pswd.InnerText = textBox_password.Text;
server.AppendChild(name);
server.AppendChild(user);
server.AppendChild(pswd);
rootnode.AppendChild(server);
xml.Save(“server.xml“);
if (!comboBox_server.Items.Contains(comboBox_server.Text))
comboBox_server.Items.Add(comboBox_server.Text);
}
else
{
}
listView_status.Items.Clear();
listView_status.Items.Add(“连接状态:“);
listView_server.Items.Clear();
groupBox2.Enabled = true;
get_dirs(comboBox_server.Text);
}
private void comboBox_server_SelectedIndexChanged(object sender EventArgs e)
{
try
{
textBox_user.Text = xml.SelectSingleNode(“//root/server[name=‘“ + comboBox_server.Text + “‘]/user“).InnerText;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 24064 2011-06-27 12:06 计算机网络课程设计-FTP客户端\FTP客户端.exe
文件 289 2011-09-29 15:19 计算机网络课程设计-FTP客户端\server.xm
文件 34241 2011-06-27 21:17 计算机网络课程设计-FTP客户端\流程图.jpg
文件 48640 2011-06-27 21:20 计算机网络课程设计-FTP客户端\流程图.vsd
文件 25088 2011-06-27 11:57 计算机网络课程设计-FTP客户端\源代码\FTP客户端\bin\Debug\FTP客户端.exe
文件 44544 2011-06-27 11:57 计算机网络课程设计-FTP客户端\源代码\FTP客户端\bin\Debug\FTP客户端.pdb
文件 14328 2011-06-27 09:11 计算机网络课程设计-FTP客户端\源代码\FTP客户端\bin\Debug\FTP客户端.vshost.exe
文件 490 2009-06-11 05:14 计算机网络课程设计-FTP客户端\源代码\FTP客户端\bin\Debug\FTP客户端.vshost.exe.manifest
文件 518 2011-06-27 11:26 计算机网络课程设计-FTP客户端\源代码\FTP客户端\bin\Debug\server.xm
文件 383 2011-06-23 08:52 计算机网络课程设计-FTP客户端\源代码\FTP客户端\bin\Debug\server.xm
文件 24064 2011-06-27 12:06 计算机网络课程设计-FTP客户端\源代码\FTP客户端\bin\Release\FTP客户端.exe
文件 42496 2011-06-27 12:06 计算机网络课程设计-FTP客户端\源代码\FTP客户端\bin\Release\FTP客户端.pdb
文件 14328 2011-07-20 21:30 计算机网络课程设计-FTP客户端\源代码\FTP客户端\bin\Release\FTP客户端.vshost.exe
文件 490 2009-06-11 05:14 计算机网络课程设计-FTP客户端\源代码\FTP客户端\bin\Release\FTP客户端.vshost.exe.manifest
文件 275 2011-06-27 14:25 计算机网络课程设计-FTP客户端\源代码\FTP客户端\bin\Release\server.xm
文件 16320 2011-07-20 21:41 计算机网络课程设计-FTP客户端\源代码\FTP客户端\Form1.cs
文件 24330 2011-06-27 12:06 计算机网络课程设计-FTP客户端\源代码\FTP客户端\Form1.Designer.cs
文件 6628 2011-06-27 12:06 计算机网络课程设计-FTP客户端\源代码\FTP客户端\Form1.resx
文件 706 2011-06-27 11:34 计算机网络课程设计-FTP客户端\源代码\FTP客户端\Form_rename.cs
文件 2644 2011-06-27 11:16 计算机网络课程设计-FTP客户端\源代码\FTP客户端\Form_rename.Designer.cs
文件 5814 2011-06-27 11:16 计算机网络课程设计-FTP客户端\源代码\FTP客户端\Form_rename.resx
文件 3760 2011-06-27 11:16 计算机网络课程设计-FTP客户端\源代码\FTP客户端\FTP客户端.csproj
文件 1685 2011-06-27 11:46 计算机网络课程设计-FTP客户端\源代码\FTP客户端\obj\Debug\FTP客户端.csproj.FileListAbsolute.txt
文件 911 2011-06-27 11:57 计算机网络课程设计-FTP客户端\源代码\FTP客户端\obj\Debug\FTP客户端.csproj.GenerateResource.Cache
文件 25088 2011-06-27 11:57 计算机网络课程设计-FTP客户端\源代码\FTP客户端\obj\Debug\FTP客户端.exe
文件 180 2011-06-27 11:57 计算机网络课程设计-FTP客户端\源代码\FTP客户端\obj\Debug\FTP客户端.Form1.resources
文件 180 2011-06-27 11:16 计算机网络课程设计-FTP客户端\源代码\FTP客户端\obj\Debug\FTP客户端.Form_rename.resources
文件 44544 2011-06-27 11:57 计算机网络课程设计-FTP客户端\源代码\FTP客户端\obj\Debug\FTP客户端.pdb
文件 180 2011-06-27 11:16 计算机网络课程设计-FTP客户端\源代码\FTP客户端\obj\Debug\FTP客户端.Properties.Resources.resources
文件 1364 2011-07-20 21:30 计算机网络课程设计-FTP客户端\源代码\FTP客户端\obj\Release\FTP客户端.csproj.FileListAbsolute.txt
............此处省略31个文件信息
- 上一篇:图书管理系统,关于数据库的图书管理,c#制作
- 下一篇:C#迷宫小游戏
相关资源
- C# IP地址输入控件
- C#在一个窗口刷新更改另一个窗口控件
- C# TIP文件生成和拆解
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
评论
共有 条评论