Exemple #1
0
		private void bRepeatCommand_Click(object sender, EventArgs e)
		{
			RepeatCommand cmd = new RepeatCommand();
			AddCommandTreeviewNode(cmd);
			//CommandTreeViewNode node = tvPlan.SelectedNode as CommandTreeViewNode;
			//TreeNodeCollection list = node.Parent == null ? tvPlan.Nodes : node.Parent.Nodes;
			//if (list != null)
			//{
			//    CommandTreeViewNode tvNode = cmd.CreateTreeviewNode();
			//    for (int i = list.Count - 1; i >= 0; i--)
			//    {
			//        TreeNode n = list[i];
			//        list.Remove(n);
			//        tvNode.Nodes.Insert(0, n);
			//    }
			//    list.Clear();
			//    InsertTreeViewNode(tvNode);
			//}
		}
Exemple #2
0
		public override CommandNode Clone()
		{
			RepeatCommand rlt = new RepeatCommand();
			base.CopyChildren(rlt);
			return rlt;
		}