Flexlayout pour les fruit du démon, les équipages et les bestiaires
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
f76cc48ea6
commit
c07b8cfd42
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="Ohara.ModalBestiaire"
|
||||||
|
Title="ModalBestiaire"
|
||||||
|
BackgroundColor="#e2edf1">
|
||||||
|
|
||||||
|
<Grid ColumnDefinitions="*,*" RowDefinitions="*,*,*,*,*" RowSpacing="10" BackgroundColor="#72a3b3" Padding="30" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand">
|
||||||
|
<Label Text="Nom :" TextColor="White" FontAttributes="Bold"/>
|
||||||
|
<Entry Text="{Binding Nom}" Grid.Column="1"/>
|
||||||
|
<Label Text="Origine :" TextColor="White" FontAttributes="Bold" Grid.Row="1"/>
|
||||||
|
<Entry Text="{Binding Origine}" Grid.Column="1" Grid.Row="1"/>
|
||||||
|
<Label Text="Carectiristique :" TextColor="White" FontAttributes="Bold" Grid.Row="2"/>
|
||||||
|
<Editor Text="{Binding Caracteristique}" Grid.Column="1" Grid.Row="2" WidthRequest="300" HeightRequest="200"/>
|
||||||
|
<Label Text="Description :" TextColor="White" FontAttributes="Bold" Grid.Row="3" />
|
||||||
|
<Editor Text="{Binding Description}" Grid.Column="1" Grid.Row="3" WidthRequest="300" HeightRequest="200"/>
|
||||||
|
<Button Text="Annuler" Clicked="ButtonAnnuler_Clicked" Grid.Row="4" />
|
||||||
|
<Button Text="Confirmer" Clicked="ButtonConfirmer_Clicked" Grid.Column="1" Grid.Row="4" />
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</ContentPage>
|
@ -0,0 +1,26 @@
|
|||||||
|
using Model.Classes;
|
||||||
|
using Model.Managers;
|
||||||
|
|
||||||
|
namespace Ohara;
|
||||||
|
|
||||||
|
public partial class ModalBestiaire : ContentPage
|
||||||
|
{
|
||||||
|
public Manager manager => (App.Current as App).manager;
|
||||||
|
public Bestiaire nouveauBest = new Bestiaire("Bestiaire", " ", " ", " ");
|
||||||
|
public ModalBestiaire()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
BindingContext = nouveauBest;
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void ButtonConfirmer_Clicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
manager.AjouterBest(nouveauBest);
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}
|
||||||
|
private async void ButtonAnnuler_Clicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,26 +1,26 @@
|
|||||||
using Model.Classes;
|
using Model.Classes;
|
||||||
using Model.Managers;
|
using Model.Managers;
|
||||||
|
|
||||||
namespace Ohara;
|
namespace Ohara;
|
||||||
|
|
||||||
public partial class ModalFDD : ContentPage
|
public partial class ModalFDD : ContentPage
|
||||||
{
|
{
|
||||||
public Manager manager => (App.Current as App).manager;
|
public Manager manager => (App.Current as App).manager;
|
||||||
public FruitDuDemon nouveauFDD = new FruitDuDemon("Fruit","","",0,0,"","","");
|
public FruitDuDemon nouveauFDD = new FruitDuDemon("Fruit","","",0,0,"","","");
|
||||||
public ModalFDD()
|
public ModalFDD()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
BindingContext = nouveauFDD;
|
BindingContext = nouveauFDD;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void ButtonConfirmer_Clicked(object sender, EventArgs e)
|
private async void ButtonConfirmer_Clicked(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
manager.AjouterFDD(nouveauFDD);
|
manager.AjouterFDD(nouveauFDD);
|
||||||
await Navigation.PopModalAsync();
|
await Navigation.PopModalAsync();
|
||||||
}
|
}
|
||||||
private async void ButtonAnnuler_Clicked(object sender, EventArgs e)
|
private async void ButtonAnnuler_Clicked(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
await Navigation.PopModalAsync();
|
await Navigation.PopModalAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="Ohara.ModalPersonnage"
|
||||||
|
Title="ModalPersonnage"
|
||||||
|
BackgroundColor="#e2edf1">
|
||||||
|
<Grid ColumnDefinitions="*,*,*,*" RowDefinitions="*,*,*,*,*" RowSpacing="10" BackgroundColor="#72a3b3" Padding="30" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand">
|
||||||
|
<Label Text="Nom :" TextColor="White" FontAttributes="Bold"/>
|
||||||
|
<Entry Text="{Binding Nom}" Grid.Column="1"/>
|
||||||
|
<Label Text="Prime :" TextColor="White" FontAttributes="Bold" Grid.Column="2"/>
|
||||||
|
<Entry Text="{Binding Prime}" Grid.Column="3" WidthRequest="300"/>
|
||||||
|
<Label Text="Epithete :" TextColor="White" FontAttributes="Bold" Grid.Row="1"/>
|
||||||
|
<Entry Text="{Binding Epithete}" Grid.Column="1" Grid.Row="1"/>
|
||||||
|
<Label Text="Origine :" TextColor="White" FontAttributes="Bold" Grid.Column="2" Grid.Row="1"/>
|
||||||
|
<Entry Text="{Binding Origine}" Grid.Column="3" Grid.Row="1"/>
|
||||||
|
<Label Text="Description :" TextColor="White" FontAttributes="Bold" Grid.Row="3" />
|
||||||
|
<Editor Text="{Binding Description}" Grid.Column="1" Grid.Row="3" WidthRequest="300" HeightRequest="200"/>
|
||||||
|
<Label Text="Citation :" TextColor="White" FontAttributes="Bold" Grid.Column="2" Grid.Row="3"/>
|
||||||
|
<Editor Text="{Binding Citation}" Grid.Column="3" Grid.Row="3"/>
|
||||||
|
<Button Text="Annuler" Clicked="ButtonAnnuler_Clicked" Grid.Row="4" Grid.ColumnSpan="2" WidthRequest="200" />
|
||||||
|
<Button Text="Confirmer" Clicked="ButtonConfirmer_Clicked" Grid.Column="2" Grid.Row="4" Grid.ColumnSpan="2" WidthRequest="200"/>
|
||||||
|
</Grid>
|
||||||
|
</ContentPage>
|
@ -0,0 +1,24 @@
|
|||||||
|
using Model.Classes;
|
||||||
|
using Model.Managers;
|
||||||
|
|
||||||
|
namespace Ohara;
|
||||||
|
|
||||||
|
public partial class ModalPersonnage : ContentPage
|
||||||
|
{
|
||||||
|
public Manager manager => (App.Current as App).manager;
|
||||||
|
public Personnage nouveauPerso = new Personnage("Personnage", 0, "", 0, 0, "", "", "");
|
||||||
|
public ModalPersonnage()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
BindingContext = nouveauPerso;
|
||||||
|
}
|
||||||
|
private async void ButtonConfirmer_Clicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
manager.AjouterPerso(nouveauPerso);
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}
|
||||||
|
private async void ButtonAnnuler_Clicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue