コード例 #1
0
 private void sp1_Tap(object sender, GestureEventArgs e)
 {
     Storyboard2.Begin();
     // image_sp1.Source = new BitmapImage(new Uri("/Image_Post/Post_Fill/triangle1.png", UriKind.Relative));
     // image_sp2.Source = new BitmapImage(new Uri("/Image_Post/Post_Fill/triangle2.png", UriKind.Relative));
     Storyboard2.Completed += new EventHandler(Storyboard2_Completed);
 }
コード例 #2
0
        public NotifyAlert(string message)
        {
            InitializeComponent();
            Storyboard2.Begin();

            alert_text.Text = message;
        }
コード例 #3
0
 private void tile4_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     //Storyboard2.AutoReverse = true;
     // Storyboard2.Duration = new Duration(new TimeSpan(0, 0, 0, 1));
     Storyboard2.Begin();
     NavigationService.Navigate(new Uri("/Views/RewardPage.xaml", UriKind.Relative));
 }
コード例 #4
0
ファイル: SignPage.xaml.cs プロジェクト: phzou204/UWPTools
        private async void SignBtn_Click(object sender, RoutedEventArgs e)
        {
            await VMLocator.Instance.SignVM.DoSign("false");//发送打卡请求

            Storyboard1.Begin();
            Storyboard2.Begin();
        }
コード例 #5
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            geldimi = false;
            foreach (Label item in sp.Children)
            {
                if (tbtahmin.Text == item.Tag.ToString() && item.Tag.ToString() != "")
                {
                    geldimi = true;


                    item.Background     = new SolidColorBrush(Colors.White);
                    item.Content        = item.Tag;
                    sptahmin.Visibility = Visibility.Collapsed;
                }
                else if (tbtahmin.Text != item.Tag.ToString())
                {
                    sptahmin.Visibility = Visibility.Collapsed;
                }
            }
            if (hareket == true && geldimi == true)
            {
                Storyboard2.Begin();
                hareket = false;
            }
            else if (geldimi == true)
            {
                Storyboard3.Begin();
                hareket = true;
            }
        }
コード例 #6
0
 void MenuContent_ManipulationCompleted(object sender, ManipulationCompletedEventArgs e)
 {
     if (e.FinalVelocities.LinearVelocity.Y < -500)
     {
         Storyboard2.Begin();
         grid_Content.IsHitTestVisible = true;
     }
 }
コード例 #7
0
 private void PhoneApplicationPage_BackKeyPress(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (grid_Content.IsHitTestVisible == false)
     {
         Storyboard2.Begin();
         grid_Content.IsHitTestVisible = true;
         e.Cancel = true;
     }
 }
コード例 #8
0
 /// <summary>
 /// Handles the Click event of the btnStep2Next control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Windows.RoutedEventArgs" /> instance containing the event data.</param>
 private void btnStep2Next_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     Storyboard2.Begin();
     //spSource.Visibility = System.Windows.Visibility.Collapsed;
     //spTable.Visibility = System.Windows.Visibility.Collapsed;
     //spAssocUser.Visibility = System.Windows.Visibility.Visible;
     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, 122, 122, 122));
     rectStep2.Fill     = new SolidColorBrush(Color.FromArgb(255, 122, 122, 122));
     tbStep3.Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 0, 0));
     rectStep3.Fill     = new SolidColorBrush(Color.FromArgb(255, 38, 198, 48));
 }
コード例 #9
0
 private void binclose_Tapped(object sender, TappedRoutedEventArgs e)
 {
     Story_Arrow.Pause();
     Img_Arrow.Visibility = Visibility.Collapsed;
     if (s == 0)
     {
         binclose.Source = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(this.BaseUri, "Assets/binopen.png"));
         Storyboard1.Begin();
         Storyboard2.Begin();
         ck1.Visibility       = Visibility.Visible;
         cockroach.Visibility = Visibility.Visible;
         s = 1;
     }
 }
コード例 #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();
            }
        }
コード例 #11
0
        void MenuContent_ManipulationDelta(object sender, ManipulationDeltaEventArgs e)
        {
            Grid grid = sender as Grid;
            CompositeTransform transform = grid.RenderTransform as CompositeTransform;

            if (e.DeltaManipulation.Translation.Y < 0)
            {
                transform.TranslateY += e.DeltaManipulation.Translation.Y;
            }
            if (transform.TranslateY < 400)
            {
                Storyboard2.Begin();
                grid_Content.IsHitTestVisible = true;
            }
        }
コード例 #12
0
        public LiveLocationIcon()
        {
            InitializeComponent();

            Loaded += (sender, args) =>
            {
                Storyboard1.Begin();
                Storyboard2.Begin();
            };

            Unloaded += (sender, args) =>
            {
                Storyboard1.Stop();
                Storyboard2.Stop();
            };
        }
コード例 #13
0
        private void app_tapped(object sender, TappedRoutedEventArgs e)
        {
            if (apple.IsTapEnabled)
            {
                count += 10;

                app_ka.Content = null;

                apple.Source = null;


                ss.Text = Convert.ToString(count);

                Storyboard2.Begin();
            }
        }
コード例 #14
0
        public UploadingControl()
        {
            InitializeComponent();

            Loaded += (sender, args) =>
            {
                Storyboard1.Begin();
                Storyboard2.Begin();
                Storyboard3.Begin();
            };

            Unloaded += (sender, args) =>
            {
                Storyboard1.Stop();
                Storyboard2.Stop();
                Storyboard3.Stop();
            };
        }
コード例 #15
0
ファイル: HubPage.xaml.cs プロジェクト: wanghao522/HubApp
 private void Hub_SectionsInViewChanged(object sender, SectionsInViewChangedEventArgs e)
 {
     if (e.AddedSections.Count > 0)
     {
         if (e.AddedSections[0].Header.ToString() == "个人中心")
         {
             Storyboard1.Begin();
             expand = true;
         }
         else
         {
             if (expand = true)
             {
                 Storyboard2.Begin();
                 expand = false;
             }
         }
     }
 }
コード例 #16
0
        private async void PedometerOnReadingChanged(object sender, BandSensorReadingEventArgs <IBandPedometerReading> e)
        {
            await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                gg.Value++;
                if (goal1)
                {
                    gg.Unit = gg.Value + "/" + numberGoal;
                }
                if (gg.Value > bestSteps)
                {
                    bestSteps = gg.Value;
                    IsolatedStorageHelper.SaveObject <double>("bestSteps", bestSteps);
                    if (!popupBest)
                    {
                        NewScore.Visibility = Visibility.Visible;
                        Storyboard2.Begin();
                        setText.Visibility  = Visibility.Collapsed;
                        setText2.Visibility = Visibility.Collapsed;
                        txtGoal.Visibility  = Visibility.Collapsed;
                        btnOk.Visibility    = Visibility.Collapsed;
                        AudioWinner.Play();
                        popupBest = true;
                    }
                }

                if (goal1 && gg.Value > numberGoal && !notification)
                {
                    var toastXmlContent = ToastNotificationManager.GetTemplateContent(ToastTemplateType.ToastText02);

                    var txtNodes = toastXmlContent.GetElementsByTagName("text");
                    txtNodes[0].AppendChild(toastXmlContent.CreateTextNode("Congratulation"));
                    txtNodes[1].AppendChild(toastXmlContent.CreateTextNode("Goal achieved"));

                    var toast         = new ToastNotification(toastXmlContent);
                    var toastNotifier = ToastNotificationManager.CreateToastNotifier();
                    toastNotifier.Show(toast);
                    notification = true;
                }
            }).AsTask();
        }
コード例 #17
0
ファイル: mazerunner.xaml.cs プロジェクト: sgrmhrzn/hackathon
        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();
        }
コード例 #18
0
        private void addPush(object sender, RoutedEventArgs e)
        {
            gg.Value++;
            if (goal1)
            {
                gg.Unit = gg.Value + "/" + numberGoal;
            }
            if (gg.Value > bestPush)
            {
                bestPush = gg.Value;
                IsolatedStorageHelper.SaveObject <double>("bestPush", bestPush);
                if (!popupBest)
                {
                    NewScore.Visibility = Visibility.Visible;
                    Storyboard2.Begin();
                    setGoal1.Visibility = Visibility.Collapsed;
                    setGoal2.Visibility = Visibility.Collapsed;
                    txtGoal.Visibility  = Visibility.Collapsed;
                    btnOk.Visibility    = Visibility.Collapsed;
                    AudioWinner.Play();
                    popupBest = true;
                }
            }


            if (goal1 && gg.Value > numberGoal && !notification)
            {
                var toastXmlContent = ToastNotificationManager.GetTemplateContent(ToastTemplateType.ToastText02);

                var txtNodes = toastXmlContent.GetElementsByTagName("text");
                txtNodes[0].AppendChild(toastXmlContent.CreateTextNode("Congratulation"));
                txtNodes[1].AppendChild(toastXmlContent.CreateTextNode("Goal achieved"));

                var toast         = new ToastNotification(toastXmlContent);
                var toastNotifier = ToastNotificationManager.CreateToastNotifier();
                toastNotifier.Show(toast);
                notification = true;
            }
        }
コード例 #19
0
ファイル: Tile2.xaml.cs プロジェクト: Kelin-Hong/Becle.Phone
        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();
        }
コード例 #20
0
ファイル: Help.xaml.cs プロジェクト: meikb/fightthelandlord
 public void PlayAni()
 {
     Visibility = Visibility.Visible;
     Storyboard2.Begin();
 }
コード例 #21
0
 private void Button2_Click(object sender, RoutedEventArgs e)
 {
     Storyboard2.Children[0].SetValue(DoubleAnimation.FromProperty, Translation2.X);
     Storyboard2.Children[0].SetValue(DoubleAnimation.ToProperty, Translation2.X > 0 ? 0 : 200);
     Storyboard2.Begin();
 }
コード例 #22
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (ch)
            {
                right1.Stop();
                rt.Stop();
            }
            else
            {
                wrong1.Stop();
                wr.Stop();
            }

            Random rnd = new Random();

            count = rnd.Next(4, 10);
            //count++;
            if (count <= 6)
            {
                Storyboard1.Begin();
            }
            else
            {
                Storyboard2.Begin();
            }



            int    nu;
            double left, right;

            left  = Math.Pow(10, (count - 1));
            right = Math.Pow(10, count);
            int left_int, right_int;

            if (count <= 9)
            {
                left_int  = Convert.ToInt32(left);
                right_int = Convert.ToInt32(right);



                nu = rnd.Next(left_int, right_int);
            }

            else
            {
                nu = rnd.Next(Convert.ToInt32(Math.Pow(10, 8)), Convert.ToInt32(Math.Pow(10, 9)));
            }

            String s = nu.ToString();

            textBlock1.Text = s;
            textBox1.Text   = "";

            //while(test.Opacity != 0)
            //{

            //}

            //textBox1.Focus();

            //while (true)
            //{
            //    if (test.Opacity == 0)
            //    {
            //        break;
            //    }


            //}

            //textBox1.Focus();

            //if (Storyboard1.GetCurrentTime()=)
            //{
            //    textBox1.Focus();
            //}

            textBox1.Focus();

            disp_num.IsEnabled    = false;
            disp_num.Opacity      = 0;
            check_score.Opacity   = 100;
            check_score.IsEnabled = true;
            notify.Text           = "Enter the number you just saw and press check";
        }
コード例 #23
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     Storyboard2.Begin();
 }
コード例 #24
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)
 {
     Storyboard2.Begin();
 }
コード例 #25
0
        /// <summary>
        /// Handles the Click event of the btnFinish control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.RoutedEventArgs" /> instance containing the event data.</param>
        private void btnFinish_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            if (ApplicationViewModel.Instance.DemoMode)
            {
                DemoMode dm = new DemoMode();
                dm.Show();
                return;
            }


            Storyboard2.Begin();
            tbStep1.Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 0, 0));
            rectStep1.Fill     = new SolidColorBrush(Color.FromArgb(255, 38, 198, 48));
            tbStep2.Foreground = new SolidColorBrush(Color.FromArgb(255, 122, 122, 122));
            rectStep2.Fill     = new SolidColorBrush(Color.FromArgb(255, 122, 122, 122));

            //userDto = userDtoCopy;
            //this.SelectedUserDto = new UserDTO();
            if (this.SelectedUserDto == null)
            {
                this.SelectedUserDto = new UserDTO();
            }
            this.SelectedUserDto.FirstName = tbFirstName.Text;
            this.SelectedUserDto.LastName  = tbLastName.Text;
            if (ApplicationViewModel.Instance.AuthenticationMode.ToString().ToLower() == "windows")
            {
                this.SelectedUserDto.Email    = tbEmailAddress.Text.ToString().ToLower();
                this.SelectedUserDto.UserName = tbUserID.Text.ToString().ToLower();
            }
            else
            {
                this.SelectedUserDto.Email    = autoEmail.Text.ToString().ToLower();
                this.SelectedUserDto.UserName = autoEmail.Text.ToLower();
            }

            this.SelectedUserDto.Phone = tbPhone.Text;
            //this.SelectedUserDto.RoleValue = Convert.ToInt32(Enum.Parse(typeof(RolesEnum), ((ComboBoxItem)cmbRole.SelectedValue).Content.ToString(), false));
            this.SelectedUserDto.UserRoleInOrganization = ((ComboBoxItem)cmbRole.SelectedItem).Content.ToString(); // cmbRole.SelectedValue.ToString();

            //this.SelectedUserDto.OrganizationID = User.Instance.UserDto.OrganizationID;
            this.SelectedUserDto.DatasourceList = ReadDatasourceList(this.SelectedUserDto.UserRoleInOrganization);

            UserOrganizationDto dto = new UserOrganizationDto();


            dto.Organization = new OrganizationDto();

            dto.Organization.Active           = this.SelectedOrg.Active;
            dto.Organization.AdminCount       = this.SelectedOrg.AdminCount;
            dto.Organization.AnalystCount     = this.SelectedOrg.AnalystCount;
            dto.Organization.DatasourceCount  = this.SelectedOrg.DatasourceCount;
            dto.Organization.DatasourcesCount = this.SelectedOrg.DatasourcesCount;
            dto.Organization.Description      = "";
            dto.Organization.Id              = this.SelectedOrg.Id;
            dto.Organization.Name            = this.SelectedOrg.Name;
            dto.Organization.SuperAdminCount = this.SelectedOrg.SuperAdminCount;
            dto.Organization.TotalUserCount  = this.SelectedOrg.TotalUserCount;


            dto.RoleId = Convert.ToInt32(Enum.Parse(typeof(RolesEnum), ((ComboBoxItem)cmbRole.SelectedValue).Content.ToString(), false));
            dto.Active = (cmbActive.SelectionBoxItem.ToString() == "Yes") ? true : false;


            switch (Mode)
            {
            case ModeType.Add:
                dto.User = this.SelectedUserDto;
                uvm.AddUser(dto);
                uvm.UserAdded       += new EventHandler(uvm_UserAdded);
                uvm.UserAddedFailed += new EventHandler(uvm_UserAddedFailed);
                break;

            case ModeType.Edit:
                this.SelectedUserDto.UserID       = this.SelectedUserDto.UserID;
                this.SelectedUserDto.PasswordHash = this.SelectedUserDto.PasswordHash;
                this.SelectedUserDto.UserEditType = UserEditType.EditingUserInfo;
                dto.User = this.SelectedUserDto;
                uvm.UpdateUser(dto);
                uvm.UserUpdated += new EventHandler(uvm_UserUpdated);
                break;

            default:
                break;
            }

            btnFinish.IsEnabled = false;
            this.DialogResult   = true;
        }
コード例 #26
0
 public void HarfYerlestir(string gelenHarf)
 {
     timer.Start();
     harf = gelenHarf;
     Storyboard2.Begin();
 }
コード例 #27
0
 private void MoveButtonX(object sender, MouseEventArgs e)
 {
     Storyboard2.Begin();
 }
コード例 #28
0
        async void accelerometer_ReadingChanged(Accelerometer sender, AccelerometerReadingChangedEventArgs args)
        {
            await this.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                if (args.Reading.AccelerationZ < -0.2 && step == false)
                {
                    step = true;
                    gg.Value++;
                    if (goal1)
                    {
                        gg.Unit = gg.Value + "/" + numberGoal;
                    }
                    if (gg.Value > bestSteps)
                    {
                        bestSteps = gg.Value;
                        IsolatedStorageHelper.SaveObject <double>("bestSteps", bestSteps);
                    }
                }
                if (args.Reading.AccelerationZ > 0.2 && step == true)
                {
                    step = false;
                    gg.Value++;
                    if (goal1)
                    {
                        gg.Unit = gg.Value + "/" + numberGoal;
                    }
                    if (gg.Value > bestSteps)
                    {
                        bestSteps = gg.Value;
                        IsolatedStorageHelper.SaveObject <double>("bestSteps", bestSteps);
                        if (!popupBest)
                        {
                            NewScore.Visibility = Visibility.Visible;
                            Storyboard2.Begin();
                            setText.Visibility  = Visibility.Collapsed;
                            setText2.Visibility = Visibility.Collapsed;
                            txtGoal.Visibility  = Visibility.Collapsed;
                            btnOk.Visibility    = Visibility.Collapsed;
                            AudioWinner.Play();
                            popupBest = true;
                        }
                    }
                }



                if (goal1 && gg.Value > numberGoal && !notification)
                {
                    var toastXmlContent = ToastNotificationManager.GetTemplateContent(ToastTemplateType.ToastText02);

                    var txtNodes = toastXmlContent.GetElementsByTagName("text");
                    txtNodes[0].AppendChild(toastXmlContent.CreateTextNode("Congratulation"));
                    txtNodes[1].AppendChild(toastXmlContent.CreateTextNode("Goal achieved"));

                    var toast         = new ToastNotification(toastXmlContent);
                    var toastNotifier = ToastNotificationManager.CreateToastNotifier();
                    toastNotifier.Show(toast);
                    notification = true;
                }


                //  reading.Text = "X: " + args.Reading.AccelerationX.ToString() + "\nY: " + args.Reading.AccelerationY.ToString() + "\nZ: " + args.Reading.AccelerationZ.ToString();
            });
        }
コード例 #29
0
 private void dash_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     Storyboard2.Begin();
     //grdDash.Visibility = System.Windows.Visibility.Visible;
     // grdAdmin.Visibility = System.Windows.Visibility.Collapsed;
 }
コード例 #30
0
ファイル: Items.xaml.cs プロジェクト: Kelin-Hong/DotaGuide
 private void img_Cancle_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     Storyboard2.Begin();
     grid_Web.Visibility = Visibility.Collapsed;
 }