private void OnMappingSelected(object sender, MappingSelectionArgs e) { Controls.Remove(mapperManager); var mapEditor = new ControllerMapperEditor(e.Controller, e.Target, e.PreviewSkin, e.Mapping); mapEditor.Dock = DockStyle.Fill; Controls.Add(mapEditor); mapEditor.FinishEditing += (o, args) => { ConfigManager.Save(); Close(); }; }
protected virtual void OnMappingSelected(MappingSelectionArgs e) { MappingSelected?.Invoke(this, e); }