예제 #1
0
 private void duplicateToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (treeView1.SelectedNode != null)
     {
         if (treeView1.SelectedNode.Tag != null)
         {
             Texture data = new Texture((Texture)treeView1.SelectedNode.Tag);
             m_vStorageObject.AddTexture(data);
             m_vStorageObject.AddChange(data);
             treeView1.Populate(new List <ScObject>()
             {
                 data
             });
         }
     }
 }