private void PropertyToolStripMenuItem_Click(object sender, EventArgs e) { frmEditTemplateProperty property = new frmEditTemplateProperty(); YTEditTemplate tag = this.listView1.SelectedItems[0].Tag as YTEditTemplate; property.EditTemplate = tag; if ((property.ShowDialog() == DialogResult.OK) && (this.listView1.SelectedItems[0].Text != tag.Name)) { this.listView1.SelectedItems[0].Text = tag.Name; } }
private void propertytoolStripButton_Click(object sender, EventArgs e) { frmEditTemplateProperty property = new frmEditTemplateProperty(); YTEditTemplate tag = this.listView2.SelectedItems[0].Tag as YTEditTemplate; property.EditTemplate = tag; if ((property.ShowDialog() == DialogResult.OK) && (this.listView2.SelectedItems[0].Text != tag.Name)) { this.listView2.SelectedItems[0].Text = tag.Name; EditTemplateManager.TemplatePropertyChange(tag); } }