コード例 #1
0
        private void BtnApplyClick(object sender, EventArgs e)
        {
            AlterTemplate alterTemplate = new AlterTemplate
            {
                ParentTemplate = (trvTemplates.SelectedNode.Parent != null) ? trvTemplates.SelectedNode.Parent.Text : null,
                TextTemplate   = trvTemplates.SelectedNode.Text,
                Insert         = false
            };

            alterTemplate.SetTextTemplate();
            alterTemplate.ShowDialog();
            trvTemplates.SelectedNode.Text = alterTemplate.TextTemplate;
        }