public static bool Show(Form owner, Visualisable v, bool readOnly) { string name = v.OverrideDisplayName; string comments = v.Comment; if (Show(owner, v.DefaultDisplayName, "Edit name and comments", v.ToString(), v.DefaultDisplayName, ref name, ref comments, readOnly, v)) { v.OverrideDisplayName = name; v.Comment = comments; return(true); } return(false); }
private void Rename(Visualisable item) { string name = item.OverrideDisplayName; string comment = item.Comment; if (FrmEditINameable.Show(this, item.DefaultDisplayName, "Rename", item.ToString(), item.DefaultDisplayName, ref name, ref comment, false, item)) { this._backups.Backup(item, "Name changed"); item.OverrideDisplayName = name; item.Comment = comment; this._listViewHelper.Rebuild(EListInvalids.ValuesChanged); } }