Пример #1
0
        /// <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;
        }
Пример #2
0
        //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;
        }
Пример #3
0
 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++;
 }
Пример #4
0
        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;
            }
        }