|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
using TheGameExtreme.IO;
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
|
|
|
|
|
namespace TheGameExtreme.view
|
|
|
|
@ -18,13 +18,15 @@ namespace TheGameExtreme.view
|
|
|
|
|
NavigationPage.SetHasNavigationBar(this, false);
|
|
|
|
|
|
|
|
|
|
PlayerSelecter.ItemsSource = listNbPlayer;
|
|
|
|
|
PlayerSelecter.SelectedIndex = 0;
|
|
|
|
|
LoadParameterNbPlayerGamePreparation();
|
|
|
|
|
|
|
|
|
|
SelectMode.ItemsSource = listGameMode;
|
|
|
|
|
SelectMode.SelectedIndex = 0;
|
|
|
|
|
|
|
|
|
|
SelectNbStack.ItemsSource = listNbStack;
|
|
|
|
|
SelectNbStack.SelectedIndex = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private async void Back(object sender, EventArgs e)
|
|
|
|
@ -46,7 +48,7 @@ namespace TheGameExtreme.view
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
IOGamePreparation.SaveParamaterGamePreparation(PlayerSelecter.SelectedIndex);
|
|
|
|
|
await Navigation.PushAsync(new MainPage(playersNames, (int)SelectNbStack.SelectedItem, (int)SelectMode.SelectedIndex));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -66,16 +68,7 @@ namespace TheGameExtreme.view
|
|
|
|
|
HorizontalOptions = LayoutOptions.Center
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
//Frame myFrame = new Frame
|
|
|
|
|
//{
|
|
|
|
|
// BackgroundColor = (Color)Application.Current.Resources["SkyBlueColor"],
|
|
|
|
|
// HeightRequest = 45,
|
|
|
|
|
// VerticalOptions = LayoutOptions.Center,
|
|
|
|
|
// HorizontalOptions = LayoutOptions.Center,
|
|
|
|
|
// WidthRequest = 120,
|
|
|
|
|
// CornerRadius = 10,
|
|
|
|
|
// Content = e
|
|
|
|
|
//};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NameList.Children.Add(e);
|
|
|
|
|
}
|
|
|
|
@ -85,17 +78,13 @@ namespace TheGameExtreme.view
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void SelectNbStack_Changed(object sender, EventArgs args)
|
|
|
|
|
public void LoadParameterNbPlayerGamePreparation()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
int nbJoueurs = IOGamePreparation.LoadParameterGamePreparation();
|
|
|
|
|
PlayerSelecter.SelectedIndex = nbJoueurs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void SelectMode_SelectedIndexChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|