private void OnParameterRenamed(RenamePopup renamePopup) { var name = (string)renamePopup.Tag; var action = new RenameParamAction { Proxy = _proxy, Before = name, After = renamePopup.Text, }; _proxy.Window.Undo.AddAction(action); action.Do(); }
private void OnParameterRenamed(RenamePopup renamePopup) { var window = (VisjectSurfaceWindow <TAsset, TSurface, TPreview>)Values[0]; var index = (int)renamePopup.Tag; var action = new RenameParamAction { Window = window, Index = index, Before = window.Surface.Parameters[index].Name, After = renamePopup.Text, }; window.Surface.Undo.AddAction(action); action.Do(); }