Exemple #1
0
        private async void LiveLocation_Click(object sender, RoutedEventArgs e)
        {
            if (LiveLocation == true)
            {
                var dialog  = new SelectLivePeriodView(false, null);
                var confirm = await dialog.ShowQueuedAsync();

                if (confirm == ContentDialogResult.Primary && _lastPosition != null)
                {
                    Media = new InputMessageLocation(new Location(_lastPosition.Coordinate.Point.Position.Latitude, _lastPosition.Coordinate.Point.Position.Longitude), dialog.Period);
                    Dialog.Hide(ContentDialogBaseResult.OK);
                }
            }
            else if (LiveLocation == false)
            {
                //Media = new TLMessageMediaGeoLive();
                Dialog.Hide(ContentDialogBaseResult.OK);
            }
        }
Exemple #2
0
 private void CurrentLocation_Click(object sender, RoutedEventArgs e)
 {
     Media = new InputMessageLocation(new Location(mMap.Center.Position.Latitude, mMap.Center.Position.Longitude), 0);
     Dialog.Hide(ContentDialogBaseResult.OK);
 }