Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions App2/App2.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32811.315
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "App2", "App2\App2.csproj", "{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|arm64 = Debug|arm64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|arm64 = Release|arm64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Debug|arm64.ActiveCfg = Debug|arm64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Debug|arm64.Build.0 = Debug|arm64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Debug|arm64.Deploy.0 = Debug|arm64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Debug|x64.ActiveCfg = Debug|x64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Debug|x64.Build.0 = Debug|x64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Debug|x64.Deploy.0 = Debug|x64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Debug|x86.ActiveCfg = Debug|x86
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Debug|x86.Build.0 = Debug|x86
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Debug|x86.Deploy.0 = Debug|x86
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Release|arm64.ActiveCfg = Release|arm64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Release|arm64.Build.0 = Release|arm64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Release|arm64.Deploy.0 = Release|arm64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Release|x64.ActiveCfg = Release|x64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Release|x64.Build.0 = Release|x64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Release|x64.Deploy.0 = Release|x64
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Release|x86.ActiveCfg = Release|x86
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Release|x86.Build.0 = Release|x86
{13E91B67-37DB-4DF3-B7D7-4D1BE197ED08}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8FB8702A-19D1-48F5-845A-CEF083ECB08E}
EndGlobalSection
EndGlobal
21 changes: 21 additions & 0 deletions App2/App2/Activite.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App2
{
public class Activite {
public int IdActivite { get; set; }
public string Nom { get; set; }
public double CoutOrganisation { get; set; }
public double PrixParticipation { get; set; }
public int IdType { get; set; }
public string TypeName { get; set; }
public double AvgRating { get; set; }
public string FCoutOrganisation => $"{CoutOrganisation:0.00} $";
public string FPrixParticipation => $"{PrixParticipation:0.00} $";

}
}
19 changes: 19 additions & 0 deletions App2/App2/Adherent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App2
{
public class Adherent
{
public string Num_identification { get; set; }
public string Nom { get; set; }
public string Prenom { get; set; }
public string Adresse { get; set; }
public string Date_naissance { get; set; }
public int Age { get; set; }
public string Nom_complet { get { return Nom+" "+Prenom; } }
}
}
15 changes: 15 additions & 0 deletions App2/App2/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Application
x:Class="App2.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App2">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
<!-- Other merged dictionaries here -->
</ResourceDictionary.MergedDictionaries>
<!-- Other app resources here -->
</ResourceDictionary>
</Application.Resources>
</Application>
51 changes: 51 additions & 0 deletions App2/App2/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using Microsoft.UI.Xaml.Shapes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace App2
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
public partial class App : Application
{
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
this.InitializeComponent();
}

/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="args">Details about the launch request and process.</param>
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
m_window = new MainWindow();
m_window.Activate();
}

private Window m_window;
}
}
87 changes: 87 additions & 0 deletions App2/App2/App2.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RootNamespace>App2</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64;arm64</Platforms>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<PublishProfile>win10-$(Platform).pubxml</PublishProfile>
<UseWinUI>true</UseWinUI>
<EnableMsixTooling>true</EnableMsixTooling>
</PropertyGroup>
<ItemGroup>
<None Remove="GestionAdherents.xaml" />
<None Remove="ListeActivitees.xaml" />
<None Remove="ListeAdherents.xaml" />
<None Remove="LoginPage.xaml" />
<None Remove="PageActivite.xaml" />
<None Remove="PageStatistique.xaml" />
</ItemGroup>

<ItemGroup>
<Content Include="Assets\SplashScreen.scale-200.png" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\Square150x150Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.1.3" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22000.194" />
<PackageReference Include="MySql.Data" Version="9.1.0" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>

<!--
Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
Tools extension to be activated for this project even if the Windows App SDK Nuget
package has not yet been restored.
-->
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
<ProjectCapability Include="Msix" />
</ItemGroup>
<ItemGroup>
<Page Update="GestionAdherents.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Page Update="LoginPage.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Page Update="ListeActivitees.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Page Update="ListeAdherents.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Page Update="PageActivite.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Page Update="PageStatistique.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>

<!--
Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution
Explorer "Package and Publish" context menu entry to be enabled for this project even if
the Windows App SDK Nuget package has not yet been restored.
-->
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
</PropertyGroup>
</Project>
33 changes: 33 additions & 0 deletions App2/App2/App2.csproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<ItemGroup>
<None Update="App.xaml">
<SubType>Designer</SubType>
</None>
<Page Update="GestionAdherents.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="LoginPage.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="ListeActivitees.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="ListeAdherents.xaml">
<SubType>Designer</SubType>
</Page>
<None Update="MainWindow.xaml">
<SubType>Designer</SubType>
</None>
<None Update="Package.appxmanifest">
<SubType>Designer</SubType>
</None>
<Page Update="PageActivite.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="PageStatistique.xaml">
<SubType>Designer</SubType>
</Page>
</ItemGroup>
</Project>
Binary file added App2/App2/Assets/LockScreenLogo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App2/App2/Assets/SplashScreen.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App2/App2/Assets/Square150x150Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App2/App2/Assets/Square44x44Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App2/App2/Assets/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App2/App2/Assets/Wide310x150Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions App2/App2/GestionAdherents.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Page
x:Class="App2.GestionAdherents"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App2"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<Grid>

</Grid>
</Page>
31 changes: 31 additions & 0 deletions App2/App2/GestionAdherents.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace App2
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class GestionAdherents : Page
{
public GestionAdherents()
{
this.InitializeComponent();
}
}
}
72 changes: 72 additions & 0 deletions App2/App2/ListeActivitees.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<Page
x:Class="App2.ListeActivitees"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App2"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<Grid>
<!-- Titre de la page -->
<TextBlock Text="Liste des Activités"
FontSize="24"
FontWeight="Bold"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Margin="10"/>

<TextBlock x:Name="err"
FontSize="14"
FontWeight="Bold"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Margin="10"/>
<!-- Bouton Exporter avec une icône -->
<Button x:Name="ExporterButton" HorizontalAlignment="Right" VerticalAlignment="Top"
Margin="10" Padding="10" Click="ExporterButton_Click">
<Button.Content>
<StackPanel Orientation="Horizontal">
<SymbolIcon Symbol="Save" Width="20" Height="20"/>
<!-- Corrected Symbol -->
<TextBlock Text="Exporter ces Activités" VerticalAlignment="Center" Margin="5,0,0,0"/>
</StackPanel>
</Button.Content>
</Button>

<!-- Conteneur pour les en-têtes -->
<Grid HorizontalAlignment="Stretch" Margin="10,50,10,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>

<TextBlock Text="Nom de l'activité" FontWeight="Bold" FontSize="16" HorizontalAlignment="Center" Grid.Column="0" Margin="5"/>
<TextBlock Text="Coût d'organisation" FontWeight="Bold" FontSize="16" HorizontalAlignment="Center" Grid.Column="1" Margin="5"/>
<TextBlock Text="Prix de participation" FontWeight="Bold" FontSize="16" HorizontalAlignment="Center" Grid.Column="2" Margin="5"/>
</Grid>

<!-- Liste des activités, seule partie scrollable -->
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Margin="10,110,10,10">
<ListView x:Name="ActivitesListView" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" SelectionChanged="ActivitesListView_SelectionChanged">
<ListView.ItemTemplate>
<DataTemplate x:DataType="local:Activite">
<Grid HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Line Stretch="UniformToFill" Margin="0,39,0,0" Stroke="Black" Grid.Column="0" Grid.ColumnSpan="3" X2="1"/>
<TextBlock Text="{x:Bind Nom}" FontSize="14" HorizontalAlignment="Left" Grid.Column="0" Margin="5"/>
<TextBlock Text="{x:Bind FCoutOrganisation}" FontSize="14" HorizontalAlignment="Center" Grid.Column="1" Margin="5"/>
<TextBlock Text="{x:Bind FPrixParticipation}" FontSize="14" HorizontalAlignment="Center" Grid.Column="2" Margin="5"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ScrollViewer>
</Grid>
</Page>
Loading