Ejemplo n.º 1
0
        private void Map_Holding(object sender, HoldingRoutedEventArgs e)
        {
            M1.Play();
            var P = (sender as Button).Tag as Point;

            Marked[P.x, P.y] = !Marked[P.x, P.y];
            if (Marked[P.x, P.y])
            {
                (sender as Button).Style = (Style)ioh[LocalTheme.Local.MarkMineResouceName];
                //   (sender as Button).Background =;
            }
            else
            {
                (sender as Button).Style = (Style)ioh[LocalTheme.Local.NomalButtonResouceName];
            }
        }
Ejemplo n.º 2
0
 private void B_RightTapped(object sender, RightTappedRoutedEventArgs e)
 {
     try
     {
         M1.Play();
         var P = (sender as Button).Tag as Point;
         Marked[P.x, P.y] = !Marked[P.x, P.y];
         if (Marked[P.x, P.y])
         {
             (sender as Button).Style = (Style)ioh[LocalTheme.Local.MarkMineResouceName];
         }
         else
         {
             (sender as Button).Style = (Style)ioh[LocalTheme.Local.NomalButtonResouceName];
         }
     }
     catch
     {
     }
 }
Ejemplo n.º 3
0
 private void MediaElement_MediaEnded(object sender, RoutedEventArgs e)
 {
     M1.Position = new TimeSpan(0, 0, 1);
     M1.Play();
 }