ApexLumia.SkyDrive.clientGetPicture_GetCompleted C# (CSharp) Method

clientGetPicture_GetCompleted() public method

public clientGetPicture_GetCompleted ( object sender, LiveOperationCompletedEventArgs e ) : void
sender object
e LiveOperationCompletedEventArgs
return void
        void clientGetPicture_GetCompleted(object sender, LiveOperationCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                var img = new System.Windows.Media.Imaging.BitmapImage();
                img.UriSource = new Uri((string)e.Result["location"]);

                dataPhoto.Source = img;
            }
        }