public static RenameLayout ( SuperPutty.Data.LayoutData layout, string newName ) : void | ||
layout | SuperPutty.Data.LayoutData | |
newName | string | |
리턴 | void |
private void renameToolStripMenuItem_Click(object sender, EventArgs e) { LayoutData layout = (LayoutData)this.listBoxLayouts.SelectedItem; if (layout != null) { dlgRenameItem renameDialog = new dlgRenameItem(); renameDialog.DetailName = String.Empty; renameDialog.ItemName = layout.Name; renameDialog.ItemNameValidator = this.ValidateLayoutName; if (DialogResult.OK == renameDialog.ShowDialog(this)) { SuperPuTTY.RenameLayout(layout, renameDialog.ItemName); } } }