private void MoveFileToKeywordFolder() { if (CategoryTree.SelectedNode.Tag is KeywordAndUser) { Keywords target = ((KeywordAndUser)CategoryTree.SelectedNode.Tag).Keyword; if (target.KeywordSubPath == null) { LocalAction.CreateKeywordDefaultSubPath(ref target); } else { return; } if (LocalAction.MoveKeywordFileToFolder(ref target)) { JianLiLinq.Default.DB.SubmitChanges(); this.指定文件夹ToolStripMenuItem.Visible = false; this.打开文件夹ToolStripMenuItem.Visible = true; }// 没有处理移动失败 } }