Ejemplo n.º 1
0
        private async void takeAudioButton_Clicked(object sender, EventArgs e)
        {
            if (cardProvider != null)
            {
                this.card = await cardProvider.getCardAsync();
            }

            await MediaCaptureUtilities.takeAudio(card, parentPage);
        }
Ejemplo n.º 2
0
        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;
                }
            }
        }