/// <summary> /// /// </summary> public ExtendedRouteDetailFrame() { if (CurrentRoutes != null) { //if (CurrentRoutes.Count > 0) //{ // CurrentRoute = CurrentRoutes.First(); // CurrentRoutes.Remove(CurrentRoute); //} if (Device.RuntimePlatform == Device.Android) { RouteViewModel.IsFirstFrame = true; } if (RouteViewModel.IsFirstFrame) { if (CurrentRoutes.Count > 0) { CurrentRoute = CurrentRoutes.First(); CurrentRoutes.Remove(CurrentRoute); } } if (CurrentRoutes.Count == 0) { RouteViewModel.IsFirstFrame = false; } } RouteViewModel.IsFirstFrame = true; HasShadow = false; }
//private List<ExtendedFrame> Frames = ExtendedCollectionView.ExtendedFrameList; /// <summary> /// /// </summary> public ExtendedFrame() { if (CurrentRoutes != null) { if (CurrentRoutes.Count > 0) { CurrentRoute = CurrentRoutes.First(); ExtendedCollectionView.ExtendedFrameList.Add(this); ExtendedCollectionView.ExtendedFrameList = ExtendedCollectionView.ExtendedFrameList.DistinctBy(x => x.CurrentRoute.ID).ToList(); CurrentRoutes.Remove(CurrentRoute); } } HasShadow = false; }
private void NextCurier_Click(object sender, EventArgs e)//maintain switching between routes { StepOverlay.Clear(); RouteOverlay.Clear(); CurrentRoutes.Clear(); CurrentSteps.Clear(); stepcounter = 0; routecounter = 0; if (allroutescounter == AllRoutes.Count) { allroutescounter = 0; curier_text.Text = "Nothing selected"; return; } curier_text.Text = AllRoutes[allroutescounter].Item2; CurrentRoutes = new List <DelivererRoute>(AllRoutes[allroutescounter].Item1); allroutescounter++; }
public ExtendedViewCell() { if (Device.RuntimePlatform == Device.Android) { RouteViewModel.IsFirstFrame = true; } if (RouteViewModel.IsFirstFrame) { if (CurrentRoutes.Count > 0) { CurrentRoute = CurrentRoutes.First(); CurrentRoutes.Remove(CurrentRoute); } } if (CurrentRoutes.Count == 0) { RouteViewModel.IsFirstFrame = false; } }