Ejemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            slidingPuzzle win2 = new slidingPuzzle();

            win2.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        private void NewGameStartGame_Click(object sender, RoutedEventArgs e)
        {
            slidingPuzzle win2 = new slidingPuzzle();

            win2.Show();
            this.Close();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Window position Test:
        /// Testing window position.
        /// Currently not working.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SlidingPuzzle_OnLoaded(object sender, RoutedEventArgs e)
        {
            slidingPuzzle win2 = new slidingPuzzle();

            win2.Top  = 0;
            win2.Left = 0;
        }
Ejemplo n.º 4
0
        private void CreateCreateProfile_Click(object sender, RoutedEventArgs e)
        {
            slidingPuzzle win2 = new slidingPuzzle();

            win2.Show();
            this.Close();
        }
Ejemplo n.º 5
0
        void App_Startup(object sender, StartupEventArgs e)
        {
            slidingPuzzle mainWindow = new slidingPuzzle();

            mainWindow.Top  = 100;
            mainWindow.Left = 400;
            MainWindow.Show();
        }
Ejemplo n.º 6
0
        private void Game1_Click(object sender, RoutedEventArgs e)
        {
            slidingPuzzle win2 = new slidingPuzzle();

            win2.Show();
            this.Close();

            slidingPuzzle sp = new slidingPuzzle();

            image = new BitmapImage(new Uri("/Numbers/amsterdam1.jpg", UriKind.Relative));
            img   = new Image {
                Source = image
            };

            sp.CreatePuzzleForImage();
        }