Ejemplo n.º 1
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            await Task.Delay(1000);

            Storyboard1.Begin();
        }
Ejemplo n.º 2
0
        public PDFrameWork()
        {
            InitializeComponent();
            RegisterEvent();
            CurrentFrameWork = this;
            timer.Start();

            Storyboard1.Begin();

            linkImage.TargetName = "_blank";
            if (CurrentSystemType.Instance.SystemType == 0)
            {
                imgType.Source        = new BitmapImage(new Uri("/Images/FrameWork/集成墙面.png", UriKind.Relative));
                linkImage.NavigateUri = new Uri("http://www.tscnqm.com", UriKind.Absolute);
            }
            else
            {
                imgType.Source        = new BitmapImage(new Uri("/Images/FrameWork/智能集成吊顶.png", UriKind.Relative));
                linkImage.NavigateUri = new Uri("http://www.tscndd.com", UriKind.Absolute);
            }

            tbUserName.Text = (App.Current as App).Profile.UserName;

            btnDownLoad.NavigateUri = CommonMethod.FileNetAddress("/APK/TSKN.apk");

            InitMenu();
        }
        public AboutPage()
        {
            this.InitializeComponent();

            Storyboard1.Begin();
            Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed;
        }
Ejemplo n.º 4
0
        private async void SignBtn_Click(object sender, RoutedEventArgs e)
        {
            await VMLocator.Instance.SignVM.DoSign("false");//发送打卡请求

            Storyboard1.Begin();
            Storyboard2.Begin();
        }
        public AssistantResult()
        {
            this.InitializeComponent();

            Storyboard1.Begin();
            HardwareButtons.BackPressed += HardwareButtons_BackPressed;
        }
Ejemplo n.º 6
0
        public void ShowMessage(string message)
        {
            var displayMsg = string.Format("{0} => {1}", this.WindowId, message);

            this.MessageBlock.Text = displayMsg;
            Storyboard1.Begin();
        }
        private void BtnDownloadButton_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
        {
            var btn = sender as Button;

            Storyboard.SetTarget(Storyboard1, btn);
            Storyboard1.Begin();
        }
Ejemplo n.º 8
0
        void image_Tap(object sender, GestureEventArgs e)
        {
            Storyboard1.Begin();
            grid_Web.Visibility = Visibility.Visible;
            id = (string)((Image)sender).Tag;
            ItemsTable item = db.itemsTable.First(c => c.DetailId.Equals(id));

            if (item.Detail == null)
            {
                networkIsAvailable = Microsoft.Phone.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable();
                if (!networkIsAvailable)
                {
                    MessageBoxResult result = MessageBox.Show("检测到当前没有网络,请联上网络重启程序", "提醒", MessageBoxButton.OK);
                    if (result == MessageBoxResult.OK)
                    {
                        ((MainPage)this.Parent).Exit();
                    }
                }
                htmlhelp.DownloadPage("http://cms1.sgamer.com/Ajax/DisplayDOTAItem?callback=?&itemID=" + id, callback1);
            }
            else
            {
                webBrowser.NavigateToString(item.Detail);
            }
        }
Ejemplo n.º 9
0
        private void begin_Click(object sender, RoutedEventArgs e)
        {
            buttonState = !buttonState;

            if (buttonState)
            {
                begin.Content = "开始";
                Storyboard1.Stop();
                int r1 = r.Next(0, count);
                int r2 = r.Next(0, count);
                int r3 = r.Next(0, count);
                content1.Text       = list.ElementAt(r1).Content;
                content2.Text       = list.ElementAt(r2).Content;
                content3.Text       = list.ElementAt(r3).Content;
                content2.Visibility = Visibility.Collapsed;
                content3.Visibility = Visibility.Collapsed;
            }
            else
            {
                begin.Content = "停止";
                Storyboard1.RepeatBehavior = RepeatBehavior.Forever;
                content3.Visibility        = Visibility.Visible;
                content2.Visibility        = Visibility.Visible;
                Storyboard1.Begin();
            }
        }
 void DTimerDownload_Tick(object sender, EventArgs e)
 {
     if (bool_statusDownload == true)
     {
         Status_Download.Text = "Welcome to Music Room ! Hope you have relax time with music!";
     }
     Storyboard1.Begin();
 }
Ejemplo n.º 11
0
 private void zombiebackground_Loaded(object sender, RoutedEventArgs e)
 {
     Storyboard1.Begin();
     timer          = new DispatcherTimer();
     timer.Interval = TimeSpan.FromSeconds(1);
     timer.Tick    += timer_Tick;
     timer.Start();
 }
Ejemplo n.º 12
0
 void image_Cancel_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     Storyboard1.AutoReverse = true;
     Storyboard1.Begin();
     Storyboard1.SeekAlignedToLastTick(new TimeSpan(0, 0, 0, 0, 300));
     // Storyboard1.SkipToFill();
     control_Category.Visibility = Visibility.Collapsed;
 }
Ejemplo n.º 13
0
        private void Tile1_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/PostPage.xaml", UriKind.Relative));
            //Storyboard1.AutoReverse = true;
            //  Storyboard1.Duration = new Duration(new TimeSpan(0,0,0,1));

            Storyboard1.Begin();
            //Storyboard1.SkipToFill();
        }
Ejemplo n.º 14
0
        public Kelime()
        {
            InitializeComponent();

            timer.Interval = TimeSpan.FromMilliseconds(950);
            timer.Tick    += timer_Tick;

            Storyboard1.Begin();
        }
Ejemplo n.º 15
0
        int currentSongIndex;       //定义于存储或检索当前播放歌曲在playList集合中的索引号

        public MainPage()
        {
            this.InitializeComponent();
            Storyboard1.Begin();   //开始底部TextBlock的动画
            txtPlayStatus.Name          = "txtPlayStatus";
            txtPlayStatus.Margin        = new Thickness(390, 535, 35, 198);
            txtPlayStatus.FontSize      = 18;
            txtPlayStatus.TextAlignment = TextAlignment.Center;
            grdMsicPlayer.Children.Add(txtPlayStatus);
        }
Ejemplo n.º 16
0
 private void btn_RewardList_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     if (this.control_RewardMenu != null)
     {
         this.control_RewardMenu.Visibility = Visibility.Visible;
     }
     MenuContent.Children.Clear();
     MenuContent.Children.Add(control_RewardMenu);
     Storyboard1.Begin();
     grid_Content.IsHitTestVisible = false;
 }
Ejemplo n.º 17
0
        private void buttonStartClick(object sender, RoutedEventArgs e)
        {
            Storyboard1.Begin();
            Reset();
            start = true;
            var result = MessageBox.Show("Вы будете играть крестиками?", "Выберете", MessageBoxButton.OKCancel);

            user = (result == MessageBoxResult.OK) ? "x" : "o";
            comp = (user == "x") ? "o" : "x";
            game = new Game(user);
        }
Ejemplo n.º 18
0
        public CustomInput()
        {
            InitializeComponent();
            var cw = CoreWindow.GetForCurrentThread();

            cw.CharacterReceived += CwOnCharacterReceived;
            GotFocus             += OnGotFocus;
            LostFocus            += OnLostFocus;
            Tapped += OnTapped;
            Storyboard1.Begin();
        }
Ejemplo n.º 19
0
 private void NavigateToStep2()
 {
     Storyboard1.Begin();
     //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));
 }
Ejemplo n.º 20
0
        public animalNivel3()
        {
            InitializeComponent();
            Storyboard1.Begin();
            Recursos recurso = new Recursos();

            recurso.reporducirSonido("/Sonidos/DescubreChanchito.mp3");
            timer2             = new DispatcherTimer();
            timer2.Interval    = TimeSpan.FromSeconds(1);
            timer2.Tick       += new EventHandler(timer2_Tick);
            correcto.Opacity   = 0;
            incorrecto.Opacity = 0;
        }
Ejemplo n.º 21
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            Storyboard1.Begin();
            Recursos recurso = new Recursos();

            recurso.reporducirSonido("/Sonidos/DescubreCaballo.mp3");
            timer              = new DispatcherTimer();
            timer.Interval     = TimeSpan.FromSeconds(1);
            timer.Tick        += new EventHandler(timer_Tick);
            correcto.Opacity   = 0;
            incorrecto.Opacity = 0;
        }
Ejemplo n.º 22
0
        /// <summary>
        /// Handles the Click event of the btnStep1Next 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 btnStep1Next_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            if (ValidateForm())
            {
                Storyboard1.Begin();
                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));

                HideShowDatasourceLists();
            }
        }
Ejemplo n.º 23
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;
     }
 }
Ejemplo n.º 24
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            localFolder = await ApplicationData.Current.LocalFolder.CreateFolderAsync("CampusTalk", CreationCollisionOption.OpenIfExists);
            await LoadUser();

            if (loggedInUser != null)
            {
                await this.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
                {
                    this.Frame.Navigate(typeof(ChatScreen), loggedInUser);
                });
            }
            Storyboard1.Begin();
            signUpUsername.Focus(FocusState.Programmatic);
        }
Ejemplo n.º 25
0
        public LiveLocationIcon()
        {
            InitializeComponent();

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

            Unloaded += (sender, args) =>
            {
                Storyboard1.Stop();
                Storyboard2.Stop();
            };
        }
Ejemplo n.º 26
0
        private void cat_tapped(object sender, TappedRoutedEventArgs e)
        {
            if (cato.IsTapEnabled)
            {
                count += 10;

                cat_ka.Visibility = Windows.UI.Xaml.Visibility.Collapsed;


                cato.Source = null;


                cc.Text = Convert.ToString(count);

                Storyboard1.Begin();
            }
        }
Ejemplo n.º 27
0
        public UploadingControl()
        {
            InitializeComponent();

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

            Unloaded += (sender, args) =>
            {
                Storyboard1.Stop();
                Storyboard2.Stop();
                Storyboard3.Stop();
            };
        }
Ejemplo n.º 28
0
 private void btn_Message_Click(object sender, EventArgs e)
 {
     isbreak = true;
     if (control_Recycle_Message != null)
     {
         MenuContent.Children.Clear();
         MenuContent.Children.Add(control_Recycle_Message);
         Storyboard1.Begin();
         grid_Content.IsHitTestVisible = false;
     }
     else
     {
         control_Recycle_Message = new Recycle_Message(this);
         MenuContent.Children.Clear();
         MenuContent.Children.Add(control_Recycle_Message);
         Storyboard1.Begin();
         grid_Content.IsHitTestVisible = false;
     }
 }
Ejemplo n.º 29
0
 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;
             }
         }
     }
 }
Ejemplo n.º 30
0
        public void spin(int degrees)
        {
            DoubleAnimation d = new DoubleAnimation();

            d.From           = 0;
            d.To             = 120;
            d.Duration       = new Duration(new TimeSpan(0, 0, 0, 0, 500));
            d.RepeatBehavior = new RepeatBehavior(1);

            TimelineCollection v = Storyboard1.Children;

            foreach (var vv in v)
            {
                DoubleAnimationUsingKeyFrames dauks = (DoubleAnimationUsingKeyFrames)vv;
                var v3 = dauks.KeyFrames[1].Value = degrees;
            }

            Storyboard1.Begin();
        }