public QueryTourisViewModel(ITouristPoints serviceAgent)
 {
     IsEnabled         = false;
     this.serviceAgent = serviceAgent;
     Task.Run((async() =>
     {
         TouristCollection = await serviceAgent.GetTouristsLocations();
         AllTouristCollection = new List <Tourist>(touristCollection);
         IsEnabled = true;
     }));
 }
 public ManageTouristViewModel(ITouristPoints serviceAgent)
 {
     touristAgent  = serviceAgent;
     SelectText    = "选择范围";
     SelectedIndex = 0;
     SetSendText();
     isSendMsgsVisible          = false;
     IsSendEmergencyMsgsVisible = false;
     isEdit            = false;
     SearchTime        = string.Format("{0:F}", DateTime.Now);
     SearchBtIsEnabled = true;
 }