public void AddNewWhisle(Modal.Whistle item) { if (!item.Provider) { ConsumerWhistleCollection.Add(new WhistleItemViewModel(item)); } else { ProviderWhistleCollection.Add(new WhistleItemViewModel(item)); } }
//private void onSetDestinationSelection() //{ // SourceLocationMode = false; // DestinationLocationMode = true; // OnPropertyChanged("SourceLocationMode"); // OnPropertyChanged("DestinationLocationMode"); //} //private void onSetSourceSelection() //{ // SourceLocationMode = true; // DestinationLocationMode = false; // OnPropertyChanged("SourceLocationMode"); // OnPropertyChanged("DestinationLocationMode"); //} public Whistle.Core.Modal.Whistle GetNewWhistle() { var whistle = new Modal.Whistle { Type = RideTypeConstants.All[selectedItem.Position], Public = true, //LeavingLocation = new GeoJSON.Net.Geometry.Point(new GeoJSON.Net.Geometry.GeographicPosition(SourcePoint.Item1, SourcePoint.Item2)), DestinationLocation = DestinationPoint, Size = _selectedPackageList.ToArray(), Comment = JourneyMessage }; return(whistle); }
public WhistleItemViewModel(Modal.Whistle item) { this.Whistle = item; }