コード例 #1
0
ファイル: Coupon.cs プロジェクト: Mumot145/ShopOn
 protected override void OnSwiped(MR.Gestures.SwipeEventArgs e)
 {
     base.OnSwiped(e);
     //ShoppingList mainInfo = new ShoppingList();
     Debug.WriteLine("direction---" + e.Direction);
     Debug.WriteLine("direction---" + e.Center);
     if (e.Direction == MR.Gestures.Direction.Right)
     {
         // mainInfo.addCoupon(this);
         Debug.WriteLine("right");
     }
     else if (e.Direction == MR.Gestures.Direction.Left)
     {
         Debug.WriteLine("left");
         //mainInfo.deleteCoupon(this);
     }
 }
コード例 #2
0
        protected override void OnSwiped(MR.Gestures.SwipeEventArgs e)
        {
            base.OnSwiped(e);
            Debug.WriteLine(e.Direction);
            if (e.Direction == MR.Gestures.Direction.Right)
            {
                Debug.WriteLine("right");

                //currentImage--;
                //if (currentImage < 0)
                //    currentImage = images.Length - 1;
                //NotifyPropertyChanged(() => ImageSource);
            }
            else if (e.Direction == MR.Gestures.Direction.Left)
            {
                Debug.WriteLine("left");
                //currentImage++;
                //if (currentImage >= images.Length)
                //    currentImage = 0;
                //NotifyPropertyChanged(() => ImageSource);
            }
        }
コード例 #3
0
        protected override void OnSwiped(MR.Gestures.SwipeEventArgs e)
        {
            base.OnSwiped(e);

            if (e.Direction == MR.Gestures.Direction.Right)
            {
                currentImage--;
                if (currentImage < 0)
                {
                    currentImage = images.Length - 1;
                }
                NotifyPropertyChanged(() => ImageSource);
            }
            else if (e.Direction == MR.Gestures.Direction.Left)
            {
                currentImage++;
                if (currentImage >= images.Length)
                {
                    currentImage = 0;
                }
                NotifyPropertyChanged(() => ImageSource);
            }
        }
コード例 #4
0
 void Handle_Swiped(object sender, MR.Gestures.SwipeEventArgs e)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
 void Cell_Swiped(object sender, MR.Gestures.SwipeEventArgs e)
 {
     ((TextOnlyViewModel)BindingContext).AddText("Cell_Swiped method called, swiped " + e.Direction);
 }