foreach (FTPClient ConnectedUser in ApplicationSettings.FtpServer.FTPClients)
{
if (ConnectedUser.SessionID == SelectedConnection_SessionID)
{
ConnectedUser.Disconnect();
break;
}
}
RefreshUsersList(null, null);
}//判断用户是否连接服务器
void ViewConnectionHistory(object sender, EventArgs e)
{
MessageBox.Show("This menu is reserved for future implementation. Option is currently unavailable.", "Advanced FTP Server");
}//查看用户连接历史
void RefreshUsersList(object sender, EventArgs e)
{
lstOnlineUsers.Items.Clear();
foreach (FTPClient ConnectedUser in ApplicationSettings.FtpServer.FTPClients)
{
string[] ItemArray = new string[5];