Exemplo n.º 1
0
        private void addToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            object                selection = treeView1.SelectedNode.Tag;
            Translation           trsl      = new Translation();
            TranslationCollection tc        = (TranslationCollection)selection;

            tc.Add(trsl);
            TreeNode tn = treeView1.SelectedNode.Nodes.Add(trsl.ToString());

            tn.ContextMenuStrip = cmsOneTranslation;
            tn.Tag = trsl;
            treeView1.SelectedNode = tn;
        }