Ejemplo n.º 1
0
        void btnAppBarNext_Click(object sender, EventArgs e)
        {
            switch ((string)control_Post_FillMessage.lb_Category.Tag)
            {
            case "fabric": tile_Fabric.img_Allready.Opacity = 1; break;

            // ((PostPage)((Grid)this.Parent).Parent).tile_Fabric.img_Allready.Opacity = 1;break;
            case "e_waste": tile_Ewaste.img_Allready.Opacity = 1; break;

            // ((PostPage)((Grid)this.Parent).Parent).tile_Ewaste.img_Allready.Opacity = 1; break;
            case "paper": tile_Paper.img_Allready.Opacity = 1; break;

            // ((PostPage)((Grid)this.Parent).Parent).tile_Paper.img_Allready.Opacity = 1; break;
            case "glass": tile_Glass.img_Allready.Opacity = 1; break;

            //  ((PostPage)((Grid)this.Parent).Parent).tile_Glass.img_Allready.Opacity = 1; break;
            case "plastic": tile_Plastic.img_Allready.Opacity = 1; break;

            // ((PostPage)((Grid)this.Parent).Parent).tile_Plastic.img_Allready.Opacity = 1; break;
            case "metal": tile_Metal.img_Allready.Opacity = 1; break;
                // ((PostPage)((Grid)this.Parent).Parent).tile_Metal.img_Allready.Opacity = 1; break;
            }
            ;
            Storyboard5.Begin();
            ContentPanel.IsHitTestVisible = true;
            ContentPanel.Opacity          = 1;
            TitlePanel.Opacity            = 1;
        }
Ejemplo n.º 2
0
 void btnAppBarBack_Click(object sender, EventArgs e)
 {
     Storyboard5.Begin();
     ContentPanel.IsHitTestVisible = true;
     ContentPanel.Opacity          = 1;
     TitlePanel.Opacity            = 1;
 }
Ejemplo n.º 3
0
 private void btnPlanList_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     volunteerPlan = new VolunteerPlan(this);
     Storyboard5.Begin();
     MenuContent.Children.Clear();
     MenuContent.Children.Add(volunteerPlan);
     dd.IsHitTestVisible = false;
 }
Ejemplo n.º 4
0
 private void btn_Plan_Click(object sender, EventArgs e)
 {
     recyclePlan = new RecyclePlan(this);
     Storyboard5.Begin();
     MenuContent.Children.Clear();
     MenuContent.Children.Add(recyclePlan);
     dd.IsHitTestVisible = false;
 }
Ejemplo n.º 5
0
 private void btnMessage_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     Storyboard5.Begin();
     isbreak = true;
     MenuContent.Children.Clear();
     MenuContent.Children.Add(acquirer_Message);
     dd.IsHitTestVisible = false;
 }
Ejemplo n.º 6
0
 void MenuContent_ManipulationCompleted(object sender, ManipulationCompletedEventArgs e)
 {
     if (e.FinalVelocities.LinearVelocity.Y < -500)
     {
         Storyboard5.Begin();
         ContentPanel.IsHitTestVisible = true;
         TitlePanel.Opacity            = 1;
         ContentPanel.Opacity          = 1;
     }
 }
Ejemplo n.º 7
0
 private void PhoneApplicationPage_BackKeyPress(object sender, CancelEventArgs e)
 {
     if (ContentPanel.IsHitTestVisible == false)
     {
         Storyboard5.Begin();
         ContentPanel.IsHitTestVisible = true;
         e.Cancel             = true;
         TitlePanel.Opacity   = 1;
         ContentPanel.Opacity = 1;
     }
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Handles the Click event of the btnCancel3 control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param>
 private void btnCancel3_Click(object sender, RoutedEventArgs e)
 {
     spSource.Visibility = System.Windows.Visibility.Collapsed;
     // spTable.Visibility = System.Windows.Visibility.Visible;
     spAssocUser.Visibility = System.Windows.Visibility.Collapsed;
     tbStep1.Foreground     = new SolidColorBrush(Color.FromArgb(255, 122, 122, 122));
     rectStep1.Fill         = new SolidColorBrush(Color.FromArgb(255, 122, 122, 122));
     tbStep2.Foreground     = new SolidColorBrush(Color.FromArgb(255, 0, 0, 0));
     rectStep2.Fill         = new SolidColorBrush(Color.FromArgb(255, 38, 198, 48));
     Storyboard5.Begin();
 }
Ejemplo n.º 9
0
        void pin_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            //Storyboard2.Begin();
            Storyboard5.Begin();
            Image            pin  = (Image)sender;
            List <ItemModel> list = vm.List_Item.Where(c => c.UserId == (int)pin.Tag).ToList();

            acquirer_Detail.lb_Detail.ItemsSource = list;
            MenuContent.Children.Clear();
            MenuContent.Children.Add(acquirer_Detail);
            dd.IsHitTestVisible = false;
            //control_Detail.lb_Detail.ItemsSource = list;
            // control_Detail.Visibility = Visibility.Visible;
        }
Ejemplo n.º 10
0
        void timer_Tick(object sender, object e)
        {
            maxTime--;
            timeleft.Text = maxTime.ToString();

            if (maxTime == 0)
            {
                timer.Stop();
                //stopStoryboard1();
                this.Frame.Navigate(typeof(Zombiescorepage));
            }

            if (maxTime == 9)
            {
                Storyboard2.Begin();
            }
            if (maxTime == 8)
            {
                Storyboard3.Begin();
            }
            if (maxTime == 7)
            {
                Storyboard4.Begin();
            }
            if (maxTime == 6)
            {
                Storyboard5.Begin();
            }
            if (maxTime == 5)
            {
                Storyboard6.Begin();
            }
            if (maxTime == 4)
            {
                Storyboard7.Begin();
            }
            if (maxTime == 3)
            {
                Storyboard8.Begin();
            }
            if (maxTime == 2)
            {
                Storyboard9.Begin();
            }
            if (maxTime == 1)
            {
                Storyboard10.Begin();
            }
        }
Ejemplo n.º 11
0
        void MenuContent_ManipulationDelta(object sender, ManipulationDeltaEventArgs e)
        {
            Grid grid = sender as Grid;
            CompositeTransform transform = grid.RenderTransform as CompositeTransform;

            if (transform.TranslateY + e.DeltaManipulation.Translation.Y < 800)
            {
                transform.TranslateY += e.DeltaManipulation.Translation.Y;
            }
            if (transform.TranslateY < 400)
            {
                Storyboard5.Begin();
                ContentPanel.IsHitTestVisible = true;
                TitlePanel.Opacity            = 1;
                ContentPanel.Opacity          = 1;
            }
        }
Ejemplo n.º 12
0
        private void Image_Tapped(object sender, TappedRoutedEventArgs e)
        {
            timer          = new DispatcherTimer();
            timer.Interval = TimeSpan.FromSeconds(1);
            timer.Tick    += timer_Tick;
            timer.Start();

            x = x + 1;

            Storyboard2.Begin();
            Storyboard3.Begin();
            Storyboard4.Begin();
            Storyboard5.Begin();
            Storyboard6.Begin();
            Storyboard7.Begin();
            Storyboard8.Begin();
            Storyboard9.Begin();
            Storyboard10.Begin();
            Storyboard11.Begin();
            Storyboard12.Begin();
        }
Ejemplo n.º 13
0
        void timer_Tick(object sender, EventArgs e)
        {
            // image10.Clip = new RectangleGeometry() { Rect = new Rect(0, 0, image10.Width / 2, image10.Height / 2) };
            int i = r.Next(12);
            int j = r.Next(5);

            switch (i)
            {
            case 1:
                image1.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + j + ".jpg", UriKind.Relative));    Storyboard1.Begin(); break;

            case 2: image2.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + j + ".jpg", UriKind.Relative));  Storyboard2.Begin(); break;

            case 3: image3.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + j + ".jpg", UriKind.Relative)); Storyboard3.Begin(); break;

            case 4: image4.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + j + ".jpg", UriKind.Relative)); Storyboard4.Begin(); break;

            case 5: image5.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + j + ".jpg", UriKind.Relative)); Storyboard5.Begin(); break;

            case 6: image6.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + j + ".jpg", UriKind.Relative)); Storyboard6.Begin(); break;

            case 7: image7.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + j + ".jpg", UriKind.Relative)); Storyboard7.Begin(); break;

            case 8: image8.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + j + ".jpg", UriKind.Relative)); Storyboard8.Begin(); break;

            case 9: image9.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + j + ".jpg", UriKind.Relative)); Storyboard9.Begin(); break;

            case 10: image10.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + j + ".jpg", UriKind.Relative)); image10.Visibility = Visibility.Collapsed; break;

            case 11: image10.Visibility = Visibility.Visible; break;
                //case 10:
                //    {
                //        //timer.Stop();
                //        //int jj = r.Next(4);

                //       // image10.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + j + ".jpg", UriKind.Relative)); image10.Clip = new RectangleGeometry() { Rect = new Rect(0, 0, 60, 60) }; Storyboard1.Begin(); break;
                //        //image1.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + jj + ".jpg", UriKind.Relative)); image1.Height = 60; image1.Width = 60; image1.Clip = new RectangleGeometry() { Rect = new Rect(0, 0, 30, 30) };  image1.Width = 60; image1.Height = 60; Storyboard1.Begin();
                //        //image2.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + jj + ".jpg", UriKind.Relative)); image2.Height = 60; image2.Width = 60; image2.Clip = new RectangleGeometry() { Rect = new Rect(30, 0, 30, 30) }; image2.Width = 120; image2.Height = 120; Storyboard2.Begin();
                //        //image5.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + jj + ".jpg", UriKind.Relative)); image5.Height = 120; image5.Width = 120; image5.Clip = new RectangleGeometry() { Rect = new Rect(0, 60, 60, 60) }; Storyboard5.Begin();
                //        //image4.Source = new BitmapImage(new Uri("/Image_Home/Avatar/" + jj + ".jpg", UriKind.Relative)); image4.Height = 120; image4.Width = 120; image4.Clip = new RectangleGeometry() { Rect = new Rect(60,60, 60, 60) }; Storyboard4.Begin();

                //    }break;
            }
            ;



            // if (i == 1)
            // Storyboard1.Begin();
            //  else
            // Storyboard2.Begin();
        }
Ejemplo n.º 14
0
 private void tile7_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     Storyboard5.Begin();
     NavigationService.Navigate(new Uri("/Views/MessagePage.xaml", UriKind.Relative));
 }
Ejemplo n.º 15
0
 private void textBlock1_MouseLeave(object sender, MouseEventArgs e)
 {
     Storyboard5.Begin();
 }