MainPage.xaml.cs
/// <summary>
/// when user press pause button, this function is called
/// It will pause simulate process
/// </summary>
when user press pause button, this function is called
It will pause simulate process
when user press pause button this function is called It will pause simulate process
private void Pause_When_ReadFile()
        {
            bPlay = false;
            myMap.MapElements.Clear();
            foreach (MapPolyline polyLines in polyLineToRemove)
            {
                myMap.Children.Remove(polyLines);
                myMap.MapElements.Remove(polyLines);
            }
            positions.Clear();
            streamReader.BaseStream.Seek(0, SeekOrigin.Current);
        }
private void Pause_When_ReadFile ( ) { bPlay = false ; myMap . MapElements . Clear ( ) ; foreach ( MapPolyline polyLines in polyLineToRemove ) { myMap . Children . Remove ( polyLines ) ; myMap . MapElements . Remove ( polyLines ) ; } positions . Clear ( ) ; streamReader . BaseStream . Seek ( 0 , SeekOrigin . Current ) ; }
when user press pause button, this function is called
It will pause simulate process
when user press pause button this function is called It will pause simulate process