Esempio n. 1
0
 public Page2()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
Esempio n. 2
0
        public playwith()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
Esempio n. 3
0
        public game()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
               
     StackPanel panel = new StackPanel();

     int i, j;
     Box_size = 9;
     gameBoxes = new Box[Box_size, Box_size];


            // init
     for (i = 0; i < Box_size; i++)
     {
         for (j = 0; j < Box_size; j++)
         {
             gameBoxes[i,j].left = false;
             gameBoxes[i,j].right = false;
             gameBoxes[i,j].down = false;
             gameBoxes[i, j].up = false;
             gameBoxes[i, j].coins = 1;
             gameBoxes[i, j].i = i;
             gameBoxes[i, j].j = j;
             gameBoxes[i,j].boundaries = 0;
         }
     }

     Ellipse rect;

     for (i = 0; i < ncols; i++)
     {
         for (j = 0; j < nrows; j++)
         {
             rect = new Ellipse();
             rect.Stroke = new SolidColorBrush(Windows.UI.Colors.White);
             rect.Fill = new SolidColorBrush(Windows.UI.Colors.White);
             rect.Width = thick;
             rect.Height = thick;
             Canvas.SetLeft(rect, i * multiplier + offset);
             Canvas.SetTop(rect, j * multiplier + offset);
             rect.StrokeThickness = 2;
             can.Children.Add(rect);
         }
     }
            
            array = new int[nrows, ncols];
            gamearea.Children.Add(panel);
            Start_timer();
        }
Esempio n. 4
0
        public HubPage()
        {
            this.InitializeComponent();

            // Hub is only supported in Portrait orientation
            DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait;

            this.NavigationCacheMode = NavigationCacheMode.Required;

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
Esempio n. 5
0
        private WriteableBitmap listBitmap;//image obtained from list 
        public Interpret()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            var app = Application.Current as App;
            if (app != null)
            {
                app.FilesOpenPicked += OnFilesOpenPicked;
                app.FileSavePicked += OnFileSavePicked;
            }
        }
        public SplitPage()
        {
            this.InitializeComponent();

            // Setup the navigation helper
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.navigationHelper.SaveState += navigationHelper_SaveState;

            // Setup the logical page navigation components that allow
            // the page to only show one pane at a time.
            this.navigationHelper.GoBackCommand = new RelayCommand(() => this.GoBack(), () => this.CanGoBack());
            this.itemListView.SelectionChanged += ItemListView_SelectionChanged;

            // Start listening for Window size changes 
            // to change from showing two panes to showing a single pane
            Window.Current.SizeChanged += Window_SizeChanged;
            this.InvalidateVisualState();
        }
Esempio n. 7
0
 public HubPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
 }