public void Finish(Keys key, Keys mods) { if (this.m_Recording) { this.m_Recording = false; base.String = GMacroEditorPanel.GetKeyName(key); GMacroEditorPanel parent = base.m_Parent as GMacroEditorPanel; if (parent != null) { parent.Macro.Key = key; parent.Macro.Mods = mods; parent.UpdateModifiers(); parent.NotifyParent(); } } }