예제 #1
0
#pragma warning restore 0067

        public async void Execute(object parameter)
        {
            var item = parameter as FeaturedEventsSchema;

            if (item != null)
            {
                var result = await ImageServices.ChoosePhoto();

                if (result.Error != null || result.TaskResult != Microsoft.Phone.Tasks.TaskResult.OK)
                {
                    return;
                }
                else
                {
                    ShareMediaTask smt = new ShareMediaTask();
                    smt.FilePath = result.OriginalFileName;
                    smt.Show();
                }
            }
        }