public void EnumChanged(HeaderType o, string key) { headersDict[key] = o; switch (o) { case HeaderType.Activity: _imported.ChangeActivity(key); break; case HeaderType.Case: _imported.ChangeCase(key); break; case HeaderType.Timestamp: _imported.ChangeTimestamp(key); break; case HeaderType.Unused: case HeaderType.Resource: _imported.ChangeResource(key); break; } StateHasChanged(); }