public async Task OnModeChangedAsync(PhotoControlMode newMode) { switch (newMode) { case PhotoControlMode.Unauthorised: break; case PhotoControlMode.Grid: await this.StartListeningForFiltersAsync(); break; case PhotoControlMode.Capture: await this.StartListeningForCheeseAsync(); break; default: break; } }