public void AddLine(string InLine) { // skip the first lines which are blank. if ((mLines.Count == 0) && (StringExt.IsBlank(InLine))) { } else { ReplyLine rpln = new ReplyLine(InLine); mLines.Add(rpln); } }
// ------------------------- FtpDirTree_Refill -------------------------- void FtpDirTree_Refill() { if (StringExt.IsBlank(mFtpSiteUrl) == true) { return; } if (StringExt.IsBlank(mFtpUserName) == true) { return; } if (StringExt.IsBlank(mFtpPassword) == true) { return; } mFtpDirTree.Nodes.Clear(); try { mFtpDirTree.BeginUpdate(); // base node TreeNode baseNode = mFtpDirTree.Nodes.Add(mFtpSiteDir); FullPath filePath = new FullPath(mFtpSiteDir); baseNode.Tag = filePath; FtpDirTree_FillDirNode(filePath, baseNode); // expand the base, ftp site, directory node. baseNode.Expand(); } finally { mFtpDirTree.EndUpdate(); } }