private void CollectAllAssembly()
 {
     List<AssemblyModel> assemblyModels = new List<AssemblyModel>();
     for (int i = 0; i < this.tvAssembly.Nodes.Count; i++)
     {
         if (this.tvAssembly.Nodes[i].Tag is AssemblyModel)
         {
             assemblyModels.Add((AssemblyModel)this.tvAssembly.Nodes[i].Tag);
         }
     }
     FormAssemblyCollect formAssemblyCollect = new FormAssemblyCollect(assemblyModels);
     formAssemblyCollect.Show();
 }
 private void CollectAssembly()
 {
     if (this.tvAssembly.SelectedNode != null && this.tvAssembly.SelectedNode.Tag is AssemblyModel)
     {
         FormAssemblyCollect formAssemblyCollect = new FormAssemblyCollect(new List<AssemblyModel>() { (AssemblyModel)this.tvAssembly.SelectedNode.Tag });
         formAssemblyCollect.Show();
     }
     else if (this.tvAssembly.SelectedNode != null && this.tvAssembly.SelectedNode.Tag is DeveloperModel)
     {
         if (this.tvAssembly.SelectedNode.Parent.Tag is AssemblyModel)
         {
             FormAssemblyCollect formAssemblyCollect = new FormAssemblyCollect(new List<AssemblyModel>() { (AssemblyModel)this.tvAssembly.SelectedNode.Parent.Tag });
             formAssemblyCollect.Show();
         }
     }
 }