You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sae201_qwirkle/Qwirkle/QwirkleViews/MainPage.xaml.cs

69 lines
1.4 KiB

using Qwirkle.Views;
using QwirkleClassLibrary;
using QwirkleClassLibrary.Games;
using Microsoft.Maui.Controls;
using Qwirkle.Pages;
namespace Qwirkle
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
BindingContext = this;
}
public ButtonShadow Button1 { get; set; }
= new ButtonShadow
{
Text = "Play"
};
public ButtonShadow Button2 { get; set; }
= new ButtonShadow
{
Text = "Continue"
};
public ButtonShadow Button3 { get; set; }
= new ButtonShadow
{
Text = "Leaderboard"
};
public ButtonShadow Button4 { get; set; }
= new ButtonShadow
{
Text = "Rules"
};
public ButtonShadow Button5 { get; set; }
= new ButtonShadow
{
Text = "Settings"
};
public ButtonShadow Button6 { get; set; }
= new ButtonShadow
{
Text = "Credits"
};
void OnInfoClicked(object sender, EventArgs e)
{
Game game = new Game();
DisplayAlert("Game notification", "Enter minimun 2 player and max 4 player !", "Ok ! Lets's go !");
Navigation.PushAsync(new SetPlayers());
}
}
}