merge de master dans joueur

master
commit 21fad430ac

@ -8,7 +8,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\BibliothequeClasses\BibliothequeClasses.csproj" /> <ProjectReference Include="..\CoreLibrary\CoreLibrary.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

@ -0,0 +1,7 @@
using CoreLibrary;
JetonIndicateur ji1 = new JetonIndicateur(Couleur.Noir);
Console.WriteLine(ji1.Couleur);
Jeton j1 = new JetonIndicateur(Couleur.Blanc);
Console.WriteLine(j1.Couleur);

@ -1,6 +1,4 @@
using System; namespace CoreLibrary
namespace BibliothequeClasses
{ {
/// <summary> /// <summary>
/// Représente un jeton de jeu qui permet de récupérer et de modifier sa couleur. /// Représente un jeton de jeu qui permet de récupérer et de modifier sa couleur.
@ -11,7 +9,7 @@ namespace BibliothequeClasses
/// Initialise une nouvelle instance de la classe Jeton avec la couleur spécifiée. /// Initialise une nouvelle instance de la classe Jeton avec la couleur spécifiée.
/// </summary> /// </summary>
/// <param name="couleur">La couleur du jeton.</param> /// <param name="couleur">La couleur du jeton.</param>
protected Jeton(Couleur couleur) protected Jeton(Couleur couleur)
{ {
this.Couleur = couleur; this.Couleur = couleur;
} }

@ -1,10 +1,4 @@
using System; namespace CoreLibrary
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BibliothequeClasses
{ {
/// <summary> /// <summary>
/// Représente un jeton indicateur, une classe dérivée de la classe Jeton. /// Représente un jeton indicateur, une classe dérivée de la classe Jeton.
@ -16,13 +10,15 @@ namespace BibliothequeClasses
/// </summary> /// </summary>
/// <param name="couleur">La couleur du jeton.</param> /// <param name="couleur">La couleur du jeton.</param>
/// <exception cref="ArgumentException">Levée si la couleur spécifiée n'est pas Noir ou Blanc.</exception> /// <exception cref="ArgumentException">Levée si la couleur spécifiée n'est pas Noir ou Blanc.</exception>
public JetonIndicateur(Couleur couleur) public JetonIndicateur(Couleur couleur)
: base(couleur) : base(couleur)
{ {
if (couleur < Couleur.Noir) if (couleur < Couleur.Noir)
{ {
throw new ArgumentException("La couleur doit être Noir ou Blanc"); throw new ArgumentException("La couleur doit être Noir ou Blanc");
} }
} }
} }
} }

@ -1,10 +1,4 @@
using System; namespace CoreLibrary
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BibliothequeClasses
{ {
/// <summary> /// <summary>
/// Représente un jeton joueur, une classe dérivée de la classe Jeton. /// Représente un jeton joueur, une classe dérivée de la classe Jeton.
@ -15,10 +9,10 @@ namespace BibliothequeClasses
/// Initialise une nouvelle instance de la classe JetonJoueur avec la couleur spécifiée. /// Initialise une nouvelle instance de la classe JetonJoueur avec la couleur spécifiée.
/// </summary> /// </summary>
/// <param name="couleur">La couleur du jeton.</param> /// <param name="couleur">La couleur du jeton.</param>
public JetonJoueur(Couleur couleur) public JetonJoueur(Couleur couleur)
: base(couleur) : base(couleur)
{ {
} }
} }
} }

@ -1,9 +1,4 @@
using System; namespace CoreLibrary
using System.ComponentModel.DataAnnotations;
using System.Reflection;
using System.Collections.Generic;
namespace BibliothequeClasses
{ {
/// <summary> /// <summary>
@ -30,8 +25,8 @@ namespace BibliothequeClasses
throw new Exception("Le plateau est plein, impossible d'ajouter une combinaison supplémentaire."); throw new Exception("Le plateau est plein, impossible d'ajouter une combinaison supplémentaire.");
} }
lesCombinaisonsJoueur[index] = combinaisonJoueur; lesCombinaisonsJoueur[index] = combinaisonJoueur;
index++; index++;
return combinaisonSecrete.EstEgal(combinaisonJoueur); return combinaisonSecrete.EstEgal(combinaisonJoueur);
} }

@ -1,7 +1,7 @@
<?xml version = "1.0" encoding = "UTF-8" ?> <?xml version = "1.0" encoding = "UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:mastermind" xmlns:local="clr-namespace:MauiSpark"
x:Class="MauiSpark.App"> x:Class="MauiSpark.App">
<Application.Resources> <Application.Resources>
<ResourceDictionary> <ResourceDictionary>

@ -1,43 +1,40 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<Shell <Shell
x:Class="mastermind.AppShell" x:Class="MauiSpark.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:MauiSpark" xmlns:local="clr-namespace:MauiSpark"
xmlns:pages="clr-namespace:MauiSpark.Pages" xmlns:pages="clr-namespace:MauiSpark.Pages"
Shell.NavBarIsVisible="False" Shell.NavBarIsVisible="False"
Shell.FlyoutBehavior="Flyout" Shell.FlyoutBehavior="Flyout"
Title="mastermind"> Title="Mastermind">
<ShellContent
Title="Accueil"
ContentTemplate="{DataTemplate pages:Accueil}" />
<ShellContent
Title="Connexion"
ContentTemplate="{DataTemplate pages:ConnexionPage}" />
<ShellContent <ShellContent
Title="TableauScore" Title="TableauScore"
ContentTemplate="{DataTemplate pages:TableauScore}" ContentTemplate="{DataTemplate pages:TableauScore}" />
Route="Pages.TableauScore" />
<ShellContent <ShellContent
Title="Regle" Title="Regle"
ContentTemplate="{DataTemplate pages:Regle}" ContentTemplate="{DataTemplate pages:Regle}" />
Route="Pages.Regle" />
<ShellContent
Title="Defaite"
ContentTemplate="{DataTemplate pages:Defaite}"
Route="Pages.Defaite" />
<ShellContent
Title="Egaliter"
ContentTemplate="{DataTemplate pages:Egaliter}"
Route="Pages.Egaliter" />
<ShellContent <ShellContent
Title="Victoire" Title="Victoire"
ContentTemplate="{DataTemplate pages:Victoire}" ContentTemplate="{DataTemplate pages:Victoire}" />
Route="Pages.Victoire" />
<ShellContent <ShellContent
Title="Accueil" Title="Defaite"
ContentTemplate="{DataTemplate pages:Accueil}" ContentTemplate="{DataTemplate pages:Defaite}" />
Route="pages:Accueil" />
<ShellContent <ShellContent
Title="Connexion" Title="Egalite"
ContentTemplate="{DataTemplate pages:ConnexionPage}" /> ContentTemplate="{DataTemplate pages:Egalite}" />
</Shell> </Shell>

@ -24,7 +24,7 @@
<ApplicationTitle>MauiSpark</ApplicationTitle> <ApplicationTitle>MauiSpark</ApplicationTitle>
<!-- App Identifier --> <!-- App Identifier -->
<ApplicationId>com.companyname.MauiSpark</ApplicationId> <ApplicationId>fr.mastermind.mauispark</ApplicationId>
<!-- Versions --> <!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
@ -47,6 +47,7 @@
<!-- Images --> <!-- Images -->
<MauiImage Include="Resources\Images\*" /> <MauiImage Include="Resources\Images\*" />
<MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />
<!-- Custom Fonts --> <!-- Custom Fonts -->
<MauiFont Include="Resources\Fonts\*" /> <MauiFont Include="Resources\Fonts\*" />
@ -62,52 +63,31 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Update="Pages\tableauScore - Copier.xaml.cs"> <MauiXaml Update="Pages\Accueil.xaml">
<DependentUpon>%(Filename)</DependentUpon>
</Compile>
<Compile Update="Pages\tableauScore.xaml.cs">
<DependentUpon>TableauScore.xaml</DependentUpon>
</Compile>
<MauiXaml Update="Pages\Egaliter.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
<MauiXaml Update="Pages\Regle.xaml"> <MauiXaml Update="Pages\ConnexionPage.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
<MauiXaml Update="Pages\Victoire.xaml"> <MauiXaml Update="Pages\Defaite.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
<MauiXaml Update="Views\CTableauScore.xaml"> <MauiXaml Update="Pages\Egaliter.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
<MauiXaml Update="Pages\NewContent1.xaml"> <MauiXaml Update="Pages\Regle.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
<MauiXaml Update="Pages\TableauScore.xaml"> <MauiXaml Update="Pages\TableauScore.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
</ItemGroup> <MauiXaml Update="Pages\Victoire.xaml">
<ItemGroup>
<Compile Update="Connexion.xaml.cs">
<DependentUpon>Connexion.xaml</DependentUpon>
</Compile>
<Compile Update="Pages\connexionPage.xaml.cs">
<DependentUpon>ConnexionPage.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<MauiXaml Update="Pages\ConnexionPage.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
<MauiXaml Update="Views\UsernameEntry.xaml"> <MauiXaml Update="Views\CTableauScore.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
</ItemGroup> <MauiXaml Update="Views\UsernameEntryView.xaml">
<ItemGroup>
<MauiXaml Update="Pages\Accueil.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
</ItemGroup> </ItemGroup>

@ -1,6 +1,6 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="mastermind.Pages.Accueil" x:Class="MauiSpark.Pages.Accueil"
Title="Accueil"> Title="Accueil">
<Grid <Grid

@ -1,4 +1,4 @@
namespace mastermind.Pages; namespace MauiSpark.Pages;
public partial class Accueil : ContentPage public partial class Accueil : ContentPage
{ {

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:Views="clr-namespace:mastermind.Views" xmlns:Views="clr-namespace:MauiSpark.Views"
x:Class="mastermind.Pages.ConnexionPage" x:Class="MauiSpark.Pages.ConnexionPage"
Title="Connexion"> Title="Connexion">
<Grid <Grid
ColumnDefinitions="*" ColumnDefinitions="*"

@ -1,4 +1,4 @@
namespace mastermind.Pages; namespace MauiSpark.Pages;
public partial class ConnexionPage : ContentPage public partial class ConnexionPage : ContentPage
{ {

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="mastermind.Pages.Defaite" x:Class="MauiSpark.Pages.Defaite"
xmlns:pages="clr-namespace:mastermind.Pages" xmlns:pages="clr-namespace:MauiSpark.Pages"
Title="Defaite"> Title="Defaite">
<VerticalStackLayout > <VerticalStackLayout >
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10"> <FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10">

@ -1,4 +1,4 @@
namespace mastermind.Pages; namespace MauiSpark.Pages;
public partial class Defaite : ContentPage public partial class Defaite : ContentPage
{ {

@ -0,0 +1,42 @@
<<<<<<<< HEAD:MauiSpark/Pages/Egaliter.xaml
<?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="mastermind.Pages.Egaliter"
xmlns:pages="clr-namespace:mastermind.Pages"
Title="Egaliter">
<VerticalStackLayout>
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10">
<Image Source="egaliter.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100" />
<Frame HorizontalOptions="Center" VerticalOptions="Center" Style="{StaticResource FrameTitrePage}">
<Label Text="Egaliter" Style="{StaticResource TexteTitre}"/>
</Frame>
<Image Source="egaliter.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100"/>
</FlexLayout>
<Frame Margin="20">
<Label HorizontalOptions="Center" Text="Les deux joueur ont trouvé en même temps" Style="{StaticResource TexteFrame}"/>
</Frame>
<Button Text="Menu" VerticalOptions="End" HorizontalOptions="Center"></Button>
</VerticalStackLayout>
========
<?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="MauiSpark.Pages.Egalite"
xmlns:pages="clr-namespace:MauiSpark.Pages"
Title="Egalite">
<VerticalStackLayout>
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10">
<Image Source="egaliter.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100" />
<Frame HorizontalOptions="Center" VerticalOptions="Center" Style="{StaticResource FrameTitrePage}">
<Label Text="Egaliter" Style="{StaticResource TexteTitre}"/>
</Frame>
<Image Source="egaliter.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100"/>
</FlexLayout>
<Frame Margin="20">
<Label HorizontalOptions="Center" Text="Les deux joueur ont trouvé en même temps" Style="{StaticResource TexteFrame}"/>
</Frame>
<Button Text="Menu" VerticalOptions="End" HorizontalOptions="Center"></Button>
</VerticalStackLayout>
>>>>>>>> master:MauiSpark/Pages/Egalite.xaml
</ContentPage>

@ -0,0 +1,9 @@
namespace MauiSpark.Pages;
public partial class Egalite : ContentPage
{
public Egalite()
{
InitializeComponent();
}
}

@ -1,20 +0,0 @@
<?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="mastermind.Pages.Egaliter"
xmlns:pages="clr-namespace:mastermind.Pages"
Title="Egaliter">
<VerticalStackLayout>
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10">
<Image Source="egaliter.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100" />
<Frame HorizontalOptions="Center" VerticalOptions="Center" Style="{StaticResource FrameTitrePage}">
<Label Text="Egaliter" Style="{StaticResource TexteTitre}"/>
</Frame>
<Image Source="egaliter.jpg" MaximumHeightRequest="100" MaximumWidthRequest="100"/>
</FlexLayout>
<Frame Margin="20">
<Label HorizontalOptions="Center" Text="Les deux joueur ont trouvé en même temps" Style="{StaticResource TexteFrame}"/>
</Frame>
<Button Text="Menu" VerticalOptions="End" HorizontalOptions="Center"></Button>
</VerticalStackLayout>
</ContentPage>

@ -1,9 +0,0 @@
namespace mastermind.Pages;
public partial class Egaliter : ContentPage
{
public Egaliter()
{
InitializeComponent();
}
}

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="mastermind.Pages.Regle" x:Class="MauiSpark.Pages.Regle"
xmlns:pages="clr-namespace:mastermind.Pages" xmlns:pages="clr-namespace:MauiSpark.Pages"
Title="Regle"> Title="Regle">
<ScrollView> <ScrollView>
<VerticalStackLayout> <VerticalStackLayout>

@ -1,4 +1,4 @@
namespace mastermind.Pages; namespace MauiSpark.Pages;
public partial class Regle : ContentPage public partial class Regle : ContentPage
{ {

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pages="clr-namespace:mastermind.Pages" xmlns:pages="clr-namespace:MauiSpark.Pages"
xmlns:views="clr-namespace:mastermind.Views" xmlns:views="clr-namespace:MauiSpark.Views"
x:Class="mastermind.Pages.TableauScore" x:Class="MauiSpark.Pages.TableauScore"
Title="TableauScore"> Title="TableauScore">
<ScrollView> <ScrollView>
<VerticalStackLayout> <VerticalStackLayout>

@ -0,0 +1,20 @@
<<<<<<<< HEAD:MauiSpark/Pages/tableauScore.xaml.cs
namespace mastermind.Pages;
public partial class TableauScore : ContentPage
{
public TableauScore()
{
InitializeComponent();
}
========
namespace MauiSpark.Pages;
public partial class TableauScore : ContentPage
{
public TableauScore()
{
InitializeComponent();
}
>>>>>>>> master:MauiSpark/Pages/TableauScore.xaml.cs
}

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="mastermind.Pages.Victoire" x:Class="MauiSpark.Pages.Victoire"
xmlns:pages="clr-namespace:mastermind.Pages" xmlns:pages="clr-namespace:MauiSpark.Pages"
Title="Victoire"> Title="Victoire">
<VerticalStackLayout> <VerticalStackLayout>
<FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10"> <FlexLayout Direction="Row" JustifyContent="SpaceAround" AlignContent="Center" VerticalOptions="Center" Margin="10">

@ -1,4 +1,4 @@
namespace mastermind.Pages; namespace MauiSpark.Pages;
public partial class Victoire : ContentPage public partial class Victoire : ContentPage
{ {

@ -1,9 +0,0 @@
namespace mastermind.Pages;
public partial class TableauScore : ContentPage
{
public TableauScore()
{
InitializeComponent();
}
}

@ -2,7 +2,7 @@
using Android.Content.PM; using Android.Content.PM;
using Android.OS; using Android.OS;
namespace mastermind namespace MauiSpark
{ {
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity public class MainActivity : MauiAppCompatActivity

@ -1,7 +1,7 @@
using Android.App; using Android.App;
using Android.Runtime; using Android.Runtime;
namespace mastermind namespace MauiSpark
{ {
[Application] [Application]
public class MainApplication : MauiApplication public class MainApplication : MauiApplication

@ -1,6 +1,6 @@
using Foundation; using Foundation;
namespace mastermind namespace MauiSpark
{ {
[Register("AppDelegate")] [Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate public class AppDelegate : MauiUIApplicationDelegate

@ -1,4 +1,5 @@
using ObjCRuntime; <<<<<<<< HEAD:MauiSpark/Platforms/iOS/Program.cs
using ObjCRuntime;
using UIKit; using UIKit;
namespace mastermind namespace mastermind
@ -14,3 +15,21 @@ namespace mastermind
} }
} }
} }
========
using ObjCRuntime;
using UIKit;
namespace MauiSpark
{
public class Program
{
// This is the main entry point of the application.
static void Main(string[] args)
{
// if you want to use a different Application Delegate class from "AppDelegate"
// you can specify it here.
UIApplication.Main(args, null, typeof(AppDelegate));
}
}
}
>>>>>>>> master:MauiSpark/Platforms/MacCatalyst/Program.cs

@ -2,7 +2,7 @@ using Microsoft.Maui;
using Microsoft.Maui.Hosting; using Microsoft.Maui.Hosting;
using System; using System;
namespace mastermind namespace MauiSpark
{ {
internal class Program : MauiApplication internal class Program : MauiApplication
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest package="maui-application-id-placeholder" version="0.0.0" api-version="7" xmlns="http://tizen.org/ns/packages"> <manifest package="maui-application-id-placeholder" version="0.0.0" api-version="8" xmlns="http://tizen.org/ns/packages">
<profile name="common" /> <profile name="common" />
<ui-application appid="maui-application-id-placeholder" exec="mastermind.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single"> <ui-application appid="maui-application-id-placeholder" exec="MauiSpark.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single">
<label>maui-application-title-placeholder</label> <label>maui-application-title-placeholder</label>
<icon>maui-appicon-placeholder</icon> <icon>maui-appicon-placeholder</icon>
<metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" /> <metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />

@ -1,8 +1,8 @@
<maui:MauiWinUIApplication <maui:MauiWinUIApplication
x:Class="mastermind.WinUI.App" x:Class="MauiSpark.WinUI.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:maui="using:Microsoft.Maui" xmlns:maui="using:Microsoft.Maui"
xmlns:local="using:mastermind.WinUI"> xmlns:local="using:MauiSpark.WinUI">
</maui:MauiWinUIApplication> </maui:MauiWinUIApplication>

@ -3,7 +3,7 @@
// To learn more about WinUI, the WinUI project structure, // To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info. // and more about our project templates, see: http://aka.ms/winui-project-info.
namespace mastermind.WinUI namespace MauiSpark.WinUI
{ {
/// <summary> /// <summary>
/// Provides application-specific behavior to supplement the default Application class. /// Provides application-specific behavior to supplement the default Application class.

@ -8,7 +8,7 @@
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" /> <Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
<mp:PhoneIdentity PhoneProductId="8382CC0C-B479-4409-8C7A-400B666C63FE" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> <mp:PhoneIdentity PhoneProductId="97E124E7-B6AB-477E-A170-E8D28350B439" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties> <Properties>
<DisplayName>$placeholder$</DisplayName> <DisplayName>$placeholder$</DisplayName>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> <assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="mastermind.WinUI.app"/> <assemblyIdentity version="1.0.0.0" name="MauiSpark.WinUI.app"/>
<application xmlns="urn:schemas-microsoft-com:asm.v3"> <application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings> <windowsSettings>

@ -1,6 +1,6 @@
using Foundation; using Foundation;
namespace mastermind namespace MauiSpark
{ {
[Register("AppDelegate")] [Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate public class AppDelegate : MauiUIApplicationDelegate

@ -1,4 +1,5 @@
using ObjCRuntime; <<<<<<<< HEAD:MauiSpark/Platforms/MacCatalyst/Program.cs
using ObjCRuntime;
using UIKit; using UIKit;
namespace mastermind namespace mastermind
@ -14,3 +15,21 @@ namespace mastermind
} }
} }
} }
========
using ObjCRuntime;
using UIKit;
namespace MauiSpark
{
public class Program
{
// This is the main entry point of the application.
static void Main(string[] args)
{
// if you want to use a different Application Delegate class from "AppDelegate"
// you can specify it here.
UIApplication.Main(args, null, typeof(AppDelegate));
}
}
}
>>>>>>>> master:MauiSpark/Platforms/iOS/Program.cs

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="mastermind.Views.CTableauScore"> x:Class="MauiSpark.Views.CTableauScore">
<Frame CornerRadius="5" Padding="0" VerticalOptions="Start" Margin="20,0,20,10" > <Frame CornerRadius="5" Padding="0" VerticalOptions="Start" Margin="20,0,20,10" >
<Grid ColumnDefinitions="auto,*,auto,auto" ColumnSpacing="10"> <Grid ColumnDefinitions="auto,*,auto,auto" ColumnSpacing="10">

@ -1,4 +1,4 @@
namespace mastermind.Views; namespace MauiSpark.Views;
public partial class CTableauScore : ContentView public partial class CTableauScore : ContentView
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="mastermind.Views.UsernameEntryView"> x:Class="MauiSpark.Views.UsernameEntryView">
<Grid <Grid
Margin="0, 50" Margin="0, 50"

@ -1,4 +1,4 @@
namespace mastermind.Views; namespace MauiSpark.Views;
public partial class UsernameEntryView : ContentView public partial class UsernameEntryView : ContentView
{ {

@ -1,39 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34330.188
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "mastermind", "mastermind.csproj", "{5552F0D6-EBF5-44B4-81FE-8A7423BB9115}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BibliothequeClasses", "..\BibliothequeClasses\BibliothequeClasses.csproj", "{A728841C-3ADF-478B-B0C7-1DCA344348D6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Console", "..\Console\Console.csproj", "{96316DF7-6526-4D0D-AF41-660832F5CA31}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5552F0D6-EBF5-44B4-81FE-8A7423BB9115}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5552F0D6-EBF5-44B4-81FE-8A7423BB9115}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5552F0D6-EBF5-44B4-81FE-8A7423BB9115}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{5552F0D6-EBF5-44B4-81FE-8A7423BB9115}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5552F0D6-EBF5-44B4-81FE-8A7423BB9115}.Release|Any CPU.Build.0 = Release|Any CPU
{5552F0D6-EBF5-44B4-81FE-8A7423BB9115}.Release|Any CPU.Deploy.0 = Release|Any CPU
{A728841C-3ADF-478B-B0C7-1DCA344348D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A728841C-3ADF-478B-B0C7-1DCA344348D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A728841C-3ADF-478B-B0C7-1DCA344348D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A728841C-3ADF-478B-B0C7-1DCA344348D6}.Release|Any CPU.Build.0 = Release|Any CPU
{96316DF7-6526-4D0D-AF41-660832F5CA31}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{96316DF7-6526-4D0D-AF41-660832F5CA31}.Debug|Any CPU.Build.0 = Debug|Any CPU
{96316DF7-6526-4D0D-AF41-660832F5CA31}.Release|Any CPU.ActiveCfg = Release|Any CPU
{96316DF7-6526-4D0D-AF41-660832F5CA31}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B3BD74E0-E5DA-4859-B2B7-E3759C2089EE}
EndGlobalSection
EndGlobal

@ -0,0 +1,39 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34330.188
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CoreLibrary", "CoreLibrary\CoreLibrary.csproj", "{341FB405-085D-4C34-B395-64EF0F9B93E0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleApp", "ConsoleApp\ConsoleApp.csproj", "{97507EBF-3973-4D1C-BE56-2F125B25E74F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MauiSpark", "MauiSpark\MauiSpark.csproj", "{BD22A919-E40E-4791-A6B0-2B8D37BBE834}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{341FB405-085D-4C34-B395-64EF0F9B93E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{341FB405-085D-4C34-B395-64EF0F9B93E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{341FB405-085D-4C34-B395-64EF0F9B93E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{341FB405-085D-4C34-B395-64EF0F9B93E0}.Release|Any CPU.Build.0 = Release|Any CPU
{97507EBF-3973-4D1C-BE56-2F125B25E74F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{97507EBF-3973-4D1C-BE56-2F125B25E74F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{97507EBF-3973-4D1C-BE56-2F125B25E74F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{97507EBF-3973-4D1C-BE56-2F125B25E74F}.Release|Any CPU.Build.0 = Release|Any CPU
{BD22A919-E40E-4791-A6B0-2B8D37BBE834}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BD22A919-E40E-4791-A6B0-2B8D37BBE834}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BD22A919-E40E-4791-A6B0-2B8D37BBE834}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{BD22A919-E40E-4791-A6B0-2B8D37BBE834}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BD22A919-E40E-4791-A6B0-2B8D37BBE834}.Release|Any CPU.Build.0 = Release|Any CPU
{BD22A919-E40E-4791-A6B0-2B8D37BBE834}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B3BD74E0-E5DA-4859-B2B7-E3759C2089EE}
EndGlobalSection
EndGlobal
Loading…
Cancel
Save