Ejemplo n.º 1
0
        private void renameToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutData layout = (LayoutData)listBoxLayouts.SelectedItem;

            if (layout != null)
            {
                dlgRenameItem renameDialog = new dlgRenameItem
                {
                    DetailName        = String.Empty,
                    ItemName          = layout.Name,
                    ItemNameValidator = ValidateLayoutName
                };
                if (DialogResult.OK == renameDialog.ShowDialog(this))
                {
                    SuperPuTTY.RenameLayout(layout, renameDialog.ItemName);
                }
            }
        }