private async void takeNoteButton_Clicked(object sender, EventArgs e) { if (cardProvider != null) { this.card = await cardProvider.getCardAsync(); } await MediaCaptureUtilities.takeNote(card, parentPage); }
public async void addClicked() { switch (curMediaType) { case MediaContentType.Note: await MediaCaptureUtilities.takeNote(this.card, this.parentPage); break; case MediaContentType.Audio: await MediaCaptureUtilities.takeAudio(this.card, this.parentPage); break; default: //audio or note not supported break; } }
public async void addClicked() { MediaContentType mediaType; if (Enum.TryParse <MediaContentType>(this.title, out mediaType)) { switch (mediaType) { case MediaContentType.Note: await MediaCaptureUtilities.takeNote(this.card, this.parentPage); break; case MediaContentType.Audio: await MediaCaptureUtilities.takeAudio(this.card, this.parentPage); break; default: //audio or note not supported break; } } }