allDonne !
This commit is contained in:
@@ -23,12 +23,12 @@
|
||||
</ProjetTheAlone.Settings1>-->
|
||||
<ProjetTheAlone.Config.Settings1>
|
||||
<setting name="schCon" serializeAs="String">
|
||||
<value>Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\ProjetThe.mdf";Integrated Security=True</value>
|
||||
<value>Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf";Integrated Security=True</value>
|
||||
</setting>
|
||||
</ProjetTheAlone.Config.Settings1>
|
||||
<ProjetTheAlone.Config.Settings2>
|
||||
<setting name="schCon" serializeAs="String">
|
||||
<value>Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\ProjetThe.mdf";Integrated Security=True</value>
|
||||
<value>Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf";Integrated Security=True</value>
|
||||
</setting>
|
||||
</ProjetTheAlone.Config.Settings2>
|
||||
</userSettings>
|
||||
|
||||
38
ProjetTheAlone/Config/Settings1.Designer.cs
generated
38
ProjetTheAlone/Config/Settings1.Designer.cs
generated
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
// Ce code a été généré par un outil.
|
||||
// Version du runtime :4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
|
||||
// le code est régénéré.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace ProjetTheAlone.Config {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.7.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
|
||||
internal sealed partial class Settings1 : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings1 defaultInstance = ((Settings1)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings1())));
|
||||
@@ -23,20 +23,6 @@ namespace ProjetTheAlone.Config {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=\"C:\\Users\\adrie\\OneDrive - Ha" +
|
||||
"ute Ecole de la ville de Liège\\3is\\poo\\ProjetTheAlone - Copie (9)\\ProjetTheAlone" +
|
||||
"\\ProjetThe.mdf\";Integrated Security=True")]
|
||||
public string schCon {
|
||||
get {
|
||||
return ((string)(this["schCon"]));
|
||||
}
|
||||
set {
|
||||
this["schCon"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Collections.Specialized.StringCollection alerte {
|
||||
@@ -47,5 +33,19 @@ namespace ProjetTheAlone.Config {
|
||||
this["alerte"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=\"C:\\Users\\adrie\\OneDrive - Ha" +
|
||||
"ute Ecole de la ville de Liège\\3is\\poo\\ProjetTheAlone\\ProjetTheAlone\\ProjetThe.m" +
|
||||
"df\";Integrated Security=True")]
|
||||
public string schCon {
|
||||
get {
|
||||
return ((string)(this["schCon"]));
|
||||
}
|
||||
set {
|
||||
this["schCon"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="ProjetTheAlone.Config" GeneratedClassName="Settings1">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="schCon" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\ProjetThe.mdf";Integrated Security=True</Value>
|
||||
</Setting>
|
||||
<Setting Name="alerte" Type="System.Collections.Specialized.StringCollection" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="schCon" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf";Integrated Security=True</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
14
ProjetTheAlone/Config/Settings2.Designer.cs
generated
14
ProjetTheAlone/Config/Settings2.Designer.cs
generated
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
// Ce code a été généré par un outil.
|
||||
// Version du runtime :4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
|
||||
// le code est régénéré.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace ProjetTheAlone.Config {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.7.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
|
||||
internal sealed partial class Settings2 : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings2 defaultInstance = ((Settings2)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings2())));
|
||||
@@ -26,8 +26,8 @@ namespace ProjetTheAlone.Config {
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=\"C:\\Users\\adrie\\OneDrive - Ha" +
|
||||
"ute Ecole de la ville de Liège\\3is\\poo\\ProjetTheAlone - Copie (9)\\ProjetTheAlone" +
|
||||
"\\ProjetThe.mdf\";Integrated Security=True")]
|
||||
"ute Ecole de la ville de Liège\\3is\\poo\\ProjetTheAlone\\ProjetTheAlone\\ProjetThe.m" +
|
||||
"df\";Integrated Security=True")]
|
||||
public string schCon {
|
||||
get {
|
||||
return ((string)(this["schCon"]));
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="schCon" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\ProjetThe.mdf";Integrated Security=True</Value>
|
||||
<Value Profile="(Default)">Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf";Integrated Security=True</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
@@ -90,17 +90,17 @@
|
||||
<Compile Include="Outil\picToByteArray.cs" />
|
||||
<Compile Include="Outil\toByteArray.cs" />
|
||||
<Compile Include="Outil\toNullableByteArray.cs" />
|
||||
<Compile Include="ViewModel\EncodeClassement.cs" />
|
||||
<Compile Include="ViewModel\EncodeDetailEvent.cs" />
|
||||
<Compile Include="ViewModel\EncodeClassement.cs" />
|
||||
<Compile Include="ViewModel\EncodeEquipe.cs" />
|
||||
<Compile Include="ViewModel\EncodeEvent.cs" />
|
||||
<Compile Include="ViewModel\EncodeLieu.cs" />
|
||||
<Compile Include="ViewModel\EncodeRepas.cs" />
|
||||
<Compile Include="ViewModel\EncodeTypeEvent.cs" />
|
||||
<Compile Include="ViewModel\EncodePlats.cs" />
|
||||
<Compile Include="ViewModel\EventDGV_VM.cs" />
|
||||
<Compile Include="ViewModel\TextDefilant.cs" />
|
||||
<Compile Include="ViewModel\VM_DashBoard.cs" />
|
||||
<Compile Include="ViewModel\EventDGV_VM.cs" />
|
||||
<Compile Include="ViewModel\VM_FicGestionAlert.cs" />
|
||||
<Compile Include="View\FicClassement.xaml.cs">
|
||||
<DependentUpon>FicClassement.xaml</DependentUpon>
|
||||
@@ -199,7 +199,7 @@
|
||||
</Compile>
|
||||
<Page Include="View\FicClassement.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>XamlIntelliSenseFileGenerator</Generator>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="View\FicDetailEvent.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
@@ -258,8 +258,8 @@
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="View\FicGestionAlert.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="View\FicNewEquipe.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
|
||||
@@ -1,268 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{F8032333-16C0-49D9-A5F6-D64E6044A580}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>ProjetTheAlone</RootNamespace>
|
||||
<AssemblyName>ProjetTheAlone</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Config\Settings2.Designer.cs">
|
||||
<DependentUpon>Settings2.settings</DependentUpon>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<Compile Include="Converter\BinaryImageConverter.cs" />
|
||||
<Compile Include="Outil\picToByteArray.cs" />
|
||||
<Compile Include="Outil\toByteArray.cs" />
|
||||
<Compile Include="Outil\toNullableByteArray.cs" />
|
||||
<Compile Include="ViewModel\EncodeEquipe.cs" />
|
||||
<Compile Include="ViewModel\EncodeEvent.cs" />
|
||||
<Compile Include="ViewModel\EncodeLieu.cs" />
|
||||
<Compile Include="ViewModel\EncodeRepas.cs" />
|
||||
<Compile Include="ViewModel\EncodeTypeEvent.cs" />
|
||||
<Compile Include="ViewModel\EncodePlats.cs" />
|
||||
<Compile Include="ViewModel\TextDefilant.cs" />
|
||||
<Compile Include="ViewModel\VM_DashBoard.cs" />
|
||||
<Compile Include="View\FicDetailEvent.xaml.cs">
|
||||
<DependentUpon>FicDetailEvent.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\FicEncodePlat.xaml.cs">
|
||||
<DependentUpon>FicEncodePlat.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Model\A_Base.cs" />
|
||||
<Compile Include="Model\A_T_beneficiaire.cs" />
|
||||
<Compile Include="Model\A_T_equipe.cs" />
|
||||
<Compile Include="Model\A_T_event.cs" />
|
||||
<Compile Include="Model\A_T_lieu.cs" />
|
||||
<Compile Include="Model\A_T_listParticipant.cs" />
|
||||
<Compile Include="Model\A_T_listPlat.cs" />
|
||||
<Compile Include="Model\A_T_plat.cs" />
|
||||
<Compile Include="Model\A_T_repa.cs" />
|
||||
<Compile Include="Model\A_T_typeEvenement.cs" />
|
||||
<Compile Include="Model\A_T_typePlat.cs" />
|
||||
<Compile Include="Model\A_T_typeRepa.cs" />
|
||||
<Compile Include="Model\C_T_beneficiaire.cs" />
|
||||
<Compile Include="Model\C_T_equipe.cs" />
|
||||
<Compile Include="Model\C_T_event.cs" />
|
||||
<Compile Include="Model\C_T_lieu.cs" />
|
||||
<Compile Include="Model\C_T_listParticipant.cs" />
|
||||
<Compile Include="Model\C_T_listPlat.cs" />
|
||||
<Compile Include="Model\C_T_plat.cs" />
|
||||
<Compile Include="Model\C_T_repa.cs" />
|
||||
<Compile Include="Model\C_T_typeEvenement.cs" />
|
||||
<Compile Include="Model\C_T_typePlat.cs" />
|
||||
<Compile Include="Model\C_T_typeRepa.cs" />
|
||||
<Compile Include="Config\Settings1.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<DependentUpon>Settings1.settings</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ViewModel\EncodeBeneficiaire.cs" />
|
||||
<Compile Include="ViewModel\EventPasseModel.cs" />
|
||||
<Compile Include="Model\G_Base.cs" />
|
||||
<Compile Include="Model\G_T_beneficiaire.cs" />
|
||||
<Compile Include="Model\G_T_equipe.cs" />
|
||||
<Compile Include="Model\G_T_event.cs" />
|
||||
<Compile Include="Model\G_T_lieu.cs" />
|
||||
<Compile Include="Model\G_T_listParticipant.cs" />
|
||||
<Compile Include="Model\G_T_listPlat.cs" />
|
||||
<Compile Include="Model\G_T_plat.cs" />
|
||||
<Compile Include="Model\G_T_repa.cs" />
|
||||
<Compile Include="Model\G_T_typeEvenement.cs" />
|
||||
<Compile Include="Model\G_T_typePlat.cs" />
|
||||
<Compile Include="Model\G_T_typeRepa.cs" />
|
||||
<Compile Include="ViewModel\RepaModel.cs" />
|
||||
<Compile Include="UserControlDIY\EventFutur.xaml.cs">
|
||||
<DependentUpon>EventFutur.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControlDIY\EventPasse.xaml.cs">
|
||||
<DependentUpon>EventPasse.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControlDIY\Plat.xaml.cs">
|
||||
<DependentUpon>Plat.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControlDIY\Repa.xaml.cs">
|
||||
<DependentUpon>Repa.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ViewModel\Base.cs" />
|
||||
<Compile Include="View\Accueil.xaml.cs">
|
||||
<DependentUpon>Accueil.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\DashBoard.xaml.cs">
|
||||
<DependentUpon>DashBoard.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\FicBeneficiaireEncode.xaml.cs">
|
||||
<DependentUpon>FicBeneficiaireEncode.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\FicEncodage.xaml.cs">
|
||||
<DependentUpon>FicEncodage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\FicEvenementEncode.xaml.cs">
|
||||
<DependentUpon>FicEvenementEncode.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\FicNewEquipe.xaml.cs">
|
||||
<DependentUpon>FicNewEquipe.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\FicNewLieu.xaml.cs">
|
||||
<DependentUpon>FicNewLieu.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\FicNewtypeEvent.xaml.cs">
|
||||
<DependentUpon>FicNewtypeEvent.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\FicRepasEncode.xaml.cs">
|
||||
<DependentUpon>FicRepasEncode.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainWindow.xaml.cs">
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<None Include="Config\Settings2.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings2.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="Config\Settings1.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings1.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 and x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="ProjetThe.mdf">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="ProjetThe_log.ldf">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<DependentUpon>ProjetThe.mdf</DependentUpon>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<ReferencePath Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\packages\ControlzEx.3.0.2.4\lib\net45\ControlzEx.dll" />
|
||||
<ReferencePath Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\packages\MaterialDesignColors.1.1.1\lib\net45\MaterialDesignColors.dll" />
|
||||
<ReferencePath Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\packages\MaterialDesignThemes.2.5.0.1205\lib\net45\MaterialDesignThemes.Wpf.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\Microsoft.CSharp.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\mscorlib.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\PresentationCore.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\PresentationFramework.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Core.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Data.DataSetExtensions.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Data.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Net.Http.dll" />
|
||||
<ReferencePath Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\packages\ControlzEx.3.0.2.4\lib\net45\System.Windows.Interactivity.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Xaml.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Xml.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Xml.Linq.dll" />
|
||||
<ReferencePath Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\WindowsBase.dll" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\View\FicDetailEvent.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\View\FicEncodePlat.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\MainWindow.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\UserControlDIY\EventFutur.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\UserControlDIY\EventPasse.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\UserControlDIY\Plat.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\UserControlDIY\Repa.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\View\Accueil.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\View\DashBoard.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\View\FicBeneficiaireEncode.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\View\FicEncodage.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\View\FicEvenementEncode.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\View\FicNewEquipe.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\View\FicNewLieu.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\View\FicNewtypeEvent.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\View\FicRepasEncode.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\App.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\ProjetTheAlone_Content.g.cs" />
|
||||
<Compile Include="C:\Users\adrie\OneDrive - Haute Ecole de la ville de Liège\3is\poo\ProjetTheAlone - Copie (9)\ProjetTheAlone\obj\Debug\GeneratedInternalTypeHelper.g.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -19,9 +19,6 @@ namespace ProjetTheAlone.View
|
||||
/// </summary>
|
||||
public partial class Accueil : Window
|
||||
{
|
||||
DashBoard W_DashBoard;
|
||||
FicEncodage W_FicEncodage;
|
||||
FicGestionAlert W_GestionAlert;
|
||||
public Accueil()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -29,6 +26,7 @@ namespace ProjetTheAlone.View
|
||||
//W_DashBoard = new DashBoard();
|
||||
//W_FicEncodage = new FicEncodage();
|
||||
//W_GestionAlert = new FicGestionAlert();
|
||||
|
||||
}
|
||||
private static bool openaffichage = false;
|
||||
private static bool openencodage = false;
|
||||
@@ -82,8 +80,6 @@ namespace ProjetTheAlone.View
|
||||
{
|
||||
FicGestionAlert w = new FicGestionAlert();
|
||||
w.Show();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
32
ProjetTheAlone/View/FicClassement.xaml
Normal file
32
ProjetTheAlone/View/FicClassement.xaml
Normal file
@@ -0,0 +1,32 @@
|
||||
<Window x:Class="ProjetTheAlone.View.FicClassement"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:ProjetTheAlone.View"
|
||||
mc:Ignorable="d"
|
||||
Title="Classement" Height="517.897" Width="638.259" WindowStartupLocation="CenterScreen" WindowStyle="None">
|
||||
<Grid Margin="0,0,2,2">
|
||||
<Label Content="Classement" HorizontalAlignment="Left" Margin="24,15,0,0" VerticalAlignment="Top" FontFamily="Calibri" FontSize="20" Width="115" Height="34"/>
|
||||
|
||||
<Button x:Name="btnQuitter"
|
||||
Content="Quitter" Click="btnQuitter_Click" Height="41" Margin="494,436,28,31" RenderTransformOrigin="1.189,1.927"/>
|
||||
<DataGrid x:Name="dgEquipes" ItemsSource="{Binding BcpEquipes}" VerticalScrollBarVisibility="Visible"
|
||||
IsReadOnly="True" AutoGenerateColumns="False"
|
||||
SelectedItem="{Binding EquipeSelectionnee, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="51,71,295,112" >
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_equipe}" />
|
||||
<DataGridTextColumn Header="Nom d'équipe" Binding="{Binding E_nom}" Width="*" />
|
||||
<DataGridTextColumn Header="Points" Binding="{Binding E_point}" Width="*" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Button x:Name="btnModifScore"
|
||||
Content="Modifier le score" Command="{Binding cModifierPoint}" Height="Auto" Margin="389,231,48,227" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}" RenderTransformOrigin="1.189,1.927"/>
|
||||
<TextBox HorizontalAlignment="Left" Height="23" Margin="513,138,0,0" Text="{Binding UneEquipe.Point}" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" TextWrapping="Wrap" VerticalAlignment="Top" Width="67"/>
|
||||
<Label Content="Score de l'équipe" HorizontalAlignment="Left" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" Margin="389,135,0,0" VerticalAlignment="Top" Width="119"/>
|
||||
<Button x:Name="btnValider"
|
||||
Content="Valider" Command="{Binding cConfirmer}" Height="Auto" Margin="389,179,146,293" RenderTransformOrigin="1.189,1.927" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}"/>
|
||||
<Button x:Name="btnAnnuler"
|
||||
Content="Annuler" Command="{Binding cAnnuler}" Height="Auto" Margin="487,179,48,293" RenderTransformOrigin="1.189,1.927" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
37
ProjetTheAlone/View/FicClassement.xaml.cs
Normal file
37
ProjetTheAlone/View/FicClassement.xaml.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
using ProjetTheAlone.Classes;
|
||||
using ProjetTheAlone.Gestion;
|
||||
using ProjetTheAlone.Config;
|
||||
|
||||
namespace ProjetTheAlone.View
|
||||
{
|
||||
/// <summary>
|
||||
/// Logique d'interaction pour FicClassement.xaml
|
||||
/// </summary>
|
||||
public partial class FicClassement : Window
|
||||
{
|
||||
public FicClassement(C_T_event _EventSelect)
|
||||
{
|
||||
C_T_event EventSelect = _EventSelect;
|
||||
InitializeComponent();
|
||||
DataContext = new ViewModel.VM_Classement(EventSelect);
|
||||
}
|
||||
|
||||
private void btnQuitter_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,6 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:ProjetTheAlone"
|
||||
xmlns:System="clr-namespace:System;assembly=mscorlib"
|
||||
xmlns:StyleAlias="clr-namespace:ProjetTheAlone.Classes"
|
||||
xmlns:convert="clr-namespace:ProjetTheAlone.Converter"
|
||||
mc:Ignorable="d"
|
||||
Title="Plats" Height="482.167" Width="955.5" WindowStartupLocation="CenterScreen" WindowStyle="None">
|
||||
@@ -43,8 +41,10 @@
|
||||
|
||||
</DockPanel>
|
||||
<DockPanel Grid.Row="5" Grid.ColumnSpan="2">
|
||||
<ComboBox x:Name="TypePlat" SelectionChanged="TypePlat_SelectionChanged" SelectedValue="{Binding Typeplat, Mode=TwoWay}">
|
||||
|
||||
<ComboBox x:Name="TypePlat" SelectionChanged="TypePlat_SelectionChanged">
|
||||
<ComboBoxItem>Soupe</ComboBoxItem>
|
||||
<ComboBoxItem IsSelected="True">Plat</ComboBoxItem>
|
||||
<ComboBoxItem>Dessert</ComboBoxItem>
|
||||
</ComboBox>
|
||||
</DockPanel>
|
||||
</Grid>
|
||||
|
||||
@@ -26,7 +26,6 @@ namespace ProjetTheAlone
|
||||
public FicEncodePlat()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.TypePlat.ItemsSource = Enum.GetValues(typeof(Classes.C_T_plat.TypePlat_E)).Cast<Classes.C_T_plat.TypePlat_E>();
|
||||
DataContext = new ViewModel.VM_Plat();
|
||||
}
|
||||
|
||||
@@ -55,8 +54,8 @@ namespace ProjetTheAlone
|
||||
|
||||
private void TypePlat_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
if (DataContext != null && this.TypePlat.Text != "")
|
||||
((ViewModel.VM_Plat)DataContext).UnPlat.TypePlat = (C_T_plat.TypePlat_E)Enum.Parse(typeof(C_T_plat.TypePlat_E), this.TypePlat.SelectedValue.ToString());
|
||||
if (DataContext != null)
|
||||
((ViewModel.VM_Plat)DataContext).UnPlat.TypePlat = (C_T_plat.TypePlat_E)Enum.Parse(typeof(C_T_plat.TypePlat_E), this.TypePlat.Text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
37
ProjetTheAlone/View/FicGestionAlert.xaml
Normal file
37
ProjetTheAlone/View/FicGestionAlert.xaml
Normal file
@@ -0,0 +1,37 @@
|
||||
<Window x:Class="ProjetTheAlone.View.FicGestionAlert"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:ProjetTheAlone.View"
|
||||
mc:Ignorable="d"
|
||||
Title="FicGestionAlert" Height="450" Width="400">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions >
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<DockPanel>
|
||||
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" FontFamily="Rockwell">Liste Alrte</TextBlock>
|
||||
<DockPanel HorizontalAlignment="Right">
|
||||
<Button Width="auto" Content="Edit" Command="{Binding cEditer}"/>
|
||||
<Button Width="auto" Content="Del" Command="{Binding cDel}"/>
|
||||
</DockPanel>
|
||||
</DockPanel>
|
||||
<DataGrid SelectionMode="Single" x:Name="dgListeAlert" ItemsSource="{Binding AlerteList, Mode=TwoWay}" SelectedItem="{Binding AlertSelect}" VerticalScrollBarVisibility="Visible"
|
||||
IsReadOnly="True" AutoGenerateColumns="False" VerticalAlignment="Stretch" ColumnWidth="*" Grid.Row="1" HeadersVisibility="None">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Binding="{Binding}" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Grid Grid.Row="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBox HorizontalAlignment="Stretch" Text="{Binding NouvelleAlert, Mode=TwoWay}" />
|
||||
<Button HorizontalAlignment="Right" Command="{Binding cAjouter}" Content="{Binding btnConfirmtxt}"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
31
ProjetTheAlone/View/FicGestionAlert.xaml.cs
Normal file
31
ProjetTheAlone/View/FicGestionAlert.xaml.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace ProjetTheAlone.View
|
||||
{
|
||||
/// <summary>
|
||||
/// Logique d'interaction pour FicGestionAlert.xaml
|
||||
/// </summary>
|
||||
public partial class FicGestionAlert : Window
|
||||
{
|
||||
|
||||
public FicGestionAlert()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.DataContext = new ViewModel.VM_FicGestionAlert();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
131
ProjetTheAlone/ViewModel/EncodeClassement.cs
Normal file
131
ProjetTheAlone/ViewModel/EncodeClassement.cs
Normal file
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ProjetTheAlone.Classes;
|
||||
using ProjetTheAlone.Gestion;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.IO;
|
||||
using ProjetTheAlone.Config;
|
||||
|
||||
namespace ProjetTheAlone.ViewModel
|
||||
{
|
||||
public class VM_Classement : BasePropriete
|
||||
{
|
||||
#region Données Écran
|
||||
|
||||
private string chConnexion = Settings2.Default.schCon /*@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='C:\Users\Hugues\Haute Ecole de la ville de Liège\Adrien VAN DAMME - ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf';Integrated Security = True"*/;
|
||||
private bool _ActiverUneFiche;
|
||||
public bool ActiverUneFiche
|
||||
{
|
||||
get { return _ActiverUneFiche; }
|
||||
set
|
||||
{
|
||||
AssignerChamp<bool>(ref _ActiverUneFiche, value, System.Reflection.MethodBase.GetCurrentMethod().Name);
|
||||
ActiverBcpFiche = !ActiverUneFiche;
|
||||
}
|
||||
}
|
||||
private bool _ActiverBcpFiche;
|
||||
public bool ActiverBcpFiche
|
||||
{
|
||||
get { return _ActiverBcpFiche; }
|
||||
set { AssignerChamp<bool>(ref _ActiverBcpFiche, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
#endregion
|
||||
#region Données Sélectionnée
|
||||
|
||||
private C_T_equipe _EquipeSelectionnee;
|
||||
public C_T_equipe EquipeSelectionnee
|
||||
{
|
||||
get { return _EquipeSelectionnee; }
|
||||
set { AssignerChamp<C_T_equipe>(ref _EquipeSelectionnee, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
#region Données extérieures
|
||||
|
||||
|
||||
private VM_UneEquipe _UneEquipe;
|
||||
public VM_UneEquipe UneEquipe
|
||||
{
|
||||
get { return _UneEquipe; }
|
||||
set { AssignerChamp<VM_UneEquipe>(ref _UneEquipe, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
|
||||
private ObservableCollection<C_T_equipe> _BcpEquipes = new ObservableCollection<C_T_equipe>();
|
||||
public ObservableCollection<C_T_equipe> BcpEquipes
|
||||
{
|
||||
get { return _BcpEquipes; }
|
||||
set { AssignerChamp<ObservableCollection<C_T_equipe>>(ref _BcpEquipes, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
public VM_Classement(C_T_event EventSelect)
|
||||
{
|
||||
|
||||
UneEquipe = new VM_UneEquipe();
|
||||
UneEquipe.Point = 0;
|
||||
BcpEquipes = ChargerEquipes(chConnexion, EventSelect);
|
||||
ActiverUneFiche = false;
|
||||
|
||||
cConfirmer = new BaseCommande(Confirmer);
|
||||
cAnnuler = new BaseCommande(Annuler);
|
||||
cModifierPoint = new BaseCommande(ModifierPoint);
|
||||
|
||||
}
|
||||
|
||||
#region Commandes
|
||||
public BaseCommande cConfirmer { get; set; }
|
||||
public BaseCommande cAnnuler { get; set; }
|
||||
public BaseCommande cModifierPoint { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Chargement
|
||||
|
||||
|
||||
private ObservableCollection<C_T_equipe> ChargerEquipes(string chConn, C_T_event EventSelect)
|
||||
{
|
||||
ObservableCollection<C_T_equipe> rep = new ObservableCollection<C_T_equipe>();
|
||||
List<C_T_equipe> lTmp = new G_T_equipe(chConn).Lire("E_point");
|
||||
foreach (C_T_equipe Tmp in lTmp)
|
||||
if (Tmp.ID_evenement == EventSelect.ID_event)
|
||||
rep.Add(Tmp);
|
||||
return rep;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
public void Confirmer()
|
||||
{
|
||||
new G_T_equipe(chConnexion).Modifier(UneEquipe.ID, UneEquipe.Nom, UneEquipe.Point, UneEquipe.IDEvent);
|
||||
BcpEquipes[BcpEquipes.IndexOf(EquipeSelectionnee)] = new C_T_equipe(UneEquipe.ID, UneEquipe.Nom, UneEquipe.Point, UneEquipe.IDEvent);
|
||||
|
||||
ActiverUneFiche = false;
|
||||
}
|
||||
public void Annuler()
|
||||
{ ActiverUneFiche = false; }
|
||||
|
||||
public void ModifierPoint()
|
||||
{
|
||||
if (EquipeSelectionnee != null)
|
||||
{
|
||||
C_T_equipe Tmp = new G_T_equipe(chConnexion).Lire_ID(EquipeSelectionnee.ID_equipe);
|
||||
|
||||
UneEquipe = new VM_UneEquipe();
|
||||
UneEquipe.ID = Tmp.ID_equipe;
|
||||
UneEquipe.Nom = Tmp.E_nom;
|
||||
UneEquipe.Point = Tmp.E_point;
|
||||
UneEquipe.IDEvent = Tmp.ID_evenement.Value;
|
||||
|
||||
ActiverUneFiche = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
225
ProjetTheAlone/ViewModel/EncodeDetailEvent.cs
Normal file
225
ProjetTheAlone/ViewModel/EncodeDetailEvent.cs
Normal file
@@ -0,0 +1,225 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ProjetTheAlone.Classes;
|
||||
using ProjetTheAlone.Gestion;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.IO;
|
||||
using ProjetTheAlone.Config;
|
||||
|
||||
|
||||
namespace ProjetTheAlone.ViewModel
|
||||
{
|
||||
public class VM_DetailEvent : BasePropriete
|
||||
{
|
||||
#region Données Écran
|
||||
|
||||
private string chConnexion = Settings2.Default.schCon /*@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='C:\Users\Hugues\Haute Ecole de la ville de Liège\Adrien VAN DAMME - ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf';Integrated Security = True"*/;
|
||||
private bool _ActiverUneFiche;
|
||||
public bool ActiverUneFiche
|
||||
{
|
||||
get { return _ActiverUneFiche; }
|
||||
set
|
||||
{
|
||||
AssignerChamp<bool>(ref _ActiverUneFiche, value, System.Reflection.MethodBase.GetCurrentMethod().Name);
|
||||
ActiverBcpFiche = !ActiverUneFiche;
|
||||
}
|
||||
}
|
||||
private bool _ActiverBcpFiche;
|
||||
public bool ActiverBcpFiche
|
||||
{
|
||||
get { return _ActiverBcpFiche; }
|
||||
set { AssignerChamp<bool>(ref _ActiverBcpFiche, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
#endregion
|
||||
#region Données Sélectionnée
|
||||
|
||||
private C_T_equipe _EquipeSelectionnee;
|
||||
public C_T_equipe EquipeSelectionnee
|
||||
{
|
||||
get { return _EquipeSelectionnee; }
|
||||
set { AssignerChamp<C_T_equipe>(ref _EquipeSelectionnee, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
#region Données extérieures
|
||||
private VM_UnEvent _UnDetailEvent;
|
||||
public VM_UnEvent UnDetailEvent
|
||||
{
|
||||
get { return _UnDetailEvent; }
|
||||
set { AssignerChamp<VM_UnEvent>(ref _UnDetailEvent, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
private string _Lieu;
|
||||
public string Lieu
|
||||
{
|
||||
get { return _Lieu; }
|
||||
set { AssignerChamp<string>(ref _Lieu, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
|
||||
private string _TypeEvent;
|
||||
public string TypeEvent
|
||||
{
|
||||
get { return _TypeEvent; }
|
||||
set { AssignerChamp<string>(ref _TypeEvent, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
|
||||
private string _Duree;
|
||||
public string Duree
|
||||
{
|
||||
get { return _Duree; }
|
||||
set { AssignerChamp<string>(ref _Duree, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
|
||||
private VM_UneEquipe _UneEquipe;
|
||||
public VM_UneEquipe UneEquipe
|
||||
{
|
||||
get { return _UneEquipe; }
|
||||
set { AssignerChamp<VM_UneEquipe>(ref _UneEquipe, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
|
||||
private ObservableCollection<C_T_equipe> _BcpEquipes = new ObservableCollection<C_T_equipe>();
|
||||
public ObservableCollection<C_T_equipe> BcpEquipes
|
||||
{
|
||||
get { return _BcpEquipes; }
|
||||
set { AssignerChamp<ObservableCollection<C_T_equipe>>(ref _BcpEquipes, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
|
||||
|
||||
|
||||
private VM_UnJoueur _UnJoueur;
|
||||
public VM_UnJoueur UnJoueur
|
||||
{
|
||||
get { return _UnJoueur; }
|
||||
set { AssignerChamp<VM_UnJoueur>(ref _UnJoueur, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
private ObservableCollection<C_T_listParticipant> _BcpJoueurs = new ObservableCollection<C_T_listParticipant>();
|
||||
public ObservableCollection<C_T_listParticipant> BcpJoueurs
|
||||
{
|
||||
get { return _BcpJoueurs; }
|
||||
set { AssignerChamp<ObservableCollection<C_T_listParticipant>>(ref _BcpJoueurs, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
|
||||
private VM_UnBeneficiaire _UnNomJoueur;
|
||||
public VM_UnBeneficiaire UnNomJoueur
|
||||
{
|
||||
get { return _UnNomJoueur; }
|
||||
set { AssignerChamp<VM_UnBeneficiaire>(ref _UnNomJoueur, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
private ObservableCollection<C_T_beneficiaire> _BcpNomJoueurs = new ObservableCollection<C_T_beneficiaire>();
|
||||
public ObservableCollection<C_T_beneficiaire> BcpNomJoueurs
|
||||
{
|
||||
get { return _BcpNomJoueurs; }
|
||||
set { AssignerChamp<ObservableCollection<C_T_beneficiaire>>(ref _BcpNomJoueurs, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
}
|
||||
#endregion
|
||||
|
||||
public VM_DetailEvent(C_T_event EventSelect)
|
||||
{
|
||||
|
||||
UnDetailEvent = new VM_UnEvent();
|
||||
UnDetailEvent.ID = EventSelect.ID_event;
|
||||
UnDetailEvent.Date = EventSelect.E_date.Value;
|
||||
UnDetailEvent.Description = EventSelect.E_description;
|
||||
UnDetailEvent.Duree = EventSelect.E_duree.Value;
|
||||
Lieu = ChargerLieu(chConnexion, EventSelect);
|
||||
TypeEvent = ChargerTypeEvent(chConnexion, EventSelect);
|
||||
Duree = ChargerDuree(chConnexion, EventSelect).ToString();
|
||||
BcpEquipes = ChargerEquipes(chConnexion,EventSelect);
|
||||
|
||||
cAfficherJoueur = new BaseCommande (ChargerJoueur);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#region Commandes
|
||||
public BaseCommande cAfficherJoueur { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Chargement
|
||||
|
||||
private string ChargerLieu(string chConn , C_T_event EventSelect)
|
||||
{
|
||||
string Lieu = "";
|
||||
List<C_T_lieu> lTmp = new G_T_lieu(chConn).Lire("ID_lieu");
|
||||
foreach (C_T_lieu Tmp in lTmp)
|
||||
{
|
||||
if (EventSelect.ID_lieu == Tmp.ID_lieu)
|
||||
Lieu = Tmp.L_nom;
|
||||
|
||||
}
|
||||
|
||||
return Lieu;
|
||||
}
|
||||
|
||||
private TimeSpan ChargerDuree(string chConn, C_T_event EventSelect)
|
||||
{
|
||||
TimeSpan Duree ;
|
||||
|
||||
return Duree = EventSelect.E_duree.Value - EventSelect.E_date.Value;
|
||||
}
|
||||
|
||||
private string ChargerTypeEvent(string chConn, C_T_event EventSelect)
|
||||
{
|
||||
string typeEvenement = "";
|
||||
List<C_T_typeEvenement> TETmp = new G_T_typeEvenement(chConn).Lire("ID_typeEvenement");
|
||||
foreach (C_T_typeEvenement Tmp in TETmp)
|
||||
{
|
||||
if (EventSelect.ID_typeEvenement == Tmp.ID_typeEvenement)
|
||||
typeEvenement = Tmp.TE_nom;
|
||||
|
||||
}
|
||||
|
||||
return typeEvenement;
|
||||
}
|
||||
|
||||
private ObservableCollection<C_T_equipe> ChargerEquipes(string chConn, C_T_event EventSelect)
|
||||
{
|
||||
ObservableCollection<C_T_equipe> rep = new ObservableCollection<C_T_equipe>();
|
||||
List<C_T_equipe> lTmp = new G_T_equipe(chConn).Lire("E_nom");
|
||||
foreach (C_T_equipe Tmp in lTmp)
|
||||
if (Tmp.ID_evenement == EventSelect.ID_event)
|
||||
rep.Add(Tmp);
|
||||
return rep;
|
||||
}
|
||||
|
||||
private void ChargerJoueur()
|
||||
{
|
||||
if (EquipeSelectionnee != null)
|
||||
{
|
||||
ObservableCollection<C_T_listParticipant> rep = new ObservableCollection<C_T_listParticipant>();
|
||||
ObservableCollection<C_T_beneficiaire> rep2 = new ObservableCollection<C_T_beneficiaire>();
|
||||
|
||||
List<C_T_listParticipant> lTmp = new G_T_listParticipant(chConnexion).Lire("ID_beneficiaire");
|
||||
foreach (C_T_listParticipant Tmp in lTmp)
|
||||
if(EquipeSelectionnee.ID_equipe == Tmp.ID_equipe)
|
||||
rep.Add(Tmp);
|
||||
|
||||
BcpJoueurs = rep;
|
||||
|
||||
List<C_T_beneficiaire> bTmp = new G_T_beneficiaire(chConnexion).Lire("B_nom");
|
||||
foreach (C_T_listParticipant ltmp in rep)
|
||||
foreach (C_T_beneficiaire Tmp in bTmp)
|
||||
if (ltmp.ID_benificiaire == Tmp.ID_beneficiaire)
|
||||
rep2.Add(Tmp);
|
||||
BcpNomJoueurs = rep2;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
53
ProjetTheAlone/ViewModel/EventDGV_VM.cs
Normal file
53
ProjetTheAlone/ViewModel/EventDGV_VM.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ProjetTheAlone.Classes;
|
||||
using ProjetTheAlone.Gestion;
|
||||
|
||||
namespace ProjetTheAlone.ViewModel
|
||||
{
|
||||
public class EventDGV_VM : BasePropriete
|
||||
{
|
||||
string chConn = Config.Settings1.Default.schCon;
|
||||
string date;
|
||||
ObservableCollection<Classes.C_T_event> bcpEvent;
|
||||
public ObservableCollection<C_T_event> BcpEvent { get => bcpEvent; set => bcpEvent = value; }
|
||||
|
||||
public string Date { get => date; set => base.AssignerChamp<string>(ref date, value, "Date"); }
|
||||
|
||||
public EventDGV_VM()
|
||||
{
|
||||
BcpEvent = chargerEventOfTheDay(DateTime.Now);
|
||||
}
|
||||
public EventDGV_VM(DateTime date)
|
||||
{
|
||||
BcpEvent = chargerEventOfTheDay(date);
|
||||
|
||||
Date = date.ToShortDateString();
|
||||
}
|
||||
private ObservableCollection<C_T_event> chargerEventOfTheDay(DateTime date)
|
||||
{
|
||||
ObservableCollection<C_T_event> rep = new ObservableCollection<C_T_event>();
|
||||
List<C_T_event> lTmp = new G_T_event(chConn).Lire(date);
|
||||
foreach (C_T_event Tmp in lTmp)
|
||||
rep.Add(Tmp);
|
||||
return rep;
|
||||
}
|
||||
}
|
||||
public class unEvent : BasePropriete
|
||||
{
|
||||
C_T_event evenment;
|
||||
public unEvent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public C_T_event Evenment { get => evenment; set => evenment = value; }
|
||||
public string AffichageDetail { get => $"{new G_T_typeEvenement(Config.Settings1.Default.schCon).Lire_ID(Evenment.ID_typeEvenement.Value)} " +
|
||||
$"le {Evenment.E_date} pandant {Evenment.E_duree}"; }
|
||||
}
|
||||
}
|
||||
95
ProjetTheAlone/ViewModel/VM_FicGestionAlert.cs
Normal file
95
ProjetTheAlone/ViewModel/VM_FicGestionAlert.cs
Normal file
@@ -0,0 +1,95 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.Specialized;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjetTheAlone.ViewModel
|
||||
{
|
||||
public class VM_FicGestionAlert : BasePropriete
|
||||
{
|
||||
private ObservableCollection<string> alerteList;
|
||||
public ObservableCollection<string> AlerteList {
|
||||
get {
|
||||
if (Config.Settings1.Default.alerte == null) Config.Settings1.Default.alerte = new StringCollection();
|
||||
if (alerteList == null) alerteList = new ObservableCollection<string>();
|
||||
if (alerteList.Count <= Config.Settings1.Default.alerte.Count) {
|
||||
this.alerteList = new ObservableCollection<string>();
|
||||
for (int i = 0; i < Config.Settings1.Default.alerte.Count; i++)
|
||||
alerteList.Add(Config.Settings1.Default.alerte[i]);
|
||||
}
|
||||
|
||||
return alerteList; }
|
||||
set {
|
||||
Config.Settings1.Default.alerte.Add(value.Last());
|
||||
Config.Settings1.Default.Save();
|
||||
OnPropertyChanged("AlerteList"); } }
|
||||
public BaseCommande cAjouter { get; set; }
|
||||
public BaseCommande cEditer { get; set; }
|
||||
public BaseCommande cDel { get; set; }
|
||||
public string AlertSelect { get => alertSelect; set { alertSelect = value; OnPropertyChanged("AlertSelect"); } }
|
||||
|
||||
public string NouvelleAlert { get => nouvelleAlert; set { nouvelleAlert = value; OnPropertyChanged("NouvelleAlert"); } }
|
||||
|
||||
string nouvelleAlert = "";
|
||||
|
||||
bool edit = false;
|
||||
public string btnConfirmtxt { get {if(Edit) return "Mettre à jour"; else return "Ajouter";} }
|
||||
|
||||
public bool Edit { get => edit; set { edit = value; OnPropertyChanged("btnConfirmtxt"); } }
|
||||
|
||||
public BaseCommande cSuprimer;
|
||||
string alertSelect = "";
|
||||
public VM_FicGestionAlert()
|
||||
{
|
||||
cAjouter = new BaseCommande(Ajouter);
|
||||
cEditer = new BaseCommande(EditCMD);
|
||||
cDel = new BaseCommande(Suprimer);
|
||||
}
|
||||
public void Ajouter()
|
||||
{
|
||||
if(nouvelleAlert != "")
|
||||
if(!edit)
|
||||
{
|
||||
AlerteList.Add(nouvelleAlert);
|
||||
Config.Settings1.Default.alerte.Add(nouvelleAlert);
|
||||
Config.Settings1.Default.Save();
|
||||
OnPropertyChanged("AlerteList");
|
||||
}
|
||||
else
|
||||
{
|
||||
int setingIndex = Config.Settings1.Default.alerte.IndexOf(AlertSelect);
|
||||
int alertListIndex = AlerteList.IndexOf(AlertSelect);
|
||||
AlerteList[alertListIndex] = NouvelleAlert;
|
||||
Config.Settings1.Default.alerte[setingIndex] = nouvelleAlert;
|
||||
Config.Settings1.Default.Save();
|
||||
Edit = false;
|
||||
OnPropertyChanged("AlerteList");
|
||||
}
|
||||
}
|
||||
public void Suprimer()
|
||||
{
|
||||
|
||||
int setingIndex = Config.Settings1.Default.alerte.IndexOf(AlertSelect);
|
||||
int alertListIndex = AlerteList.IndexOf(AlertSelect);
|
||||
if (setingIndex < 0 && alertListIndex <0)
|
||||
return;
|
||||
AlerteList.RemoveAt(alertListIndex);
|
||||
Config.Settings1.Default.alerte.RemoveAt(setingIndex);
|
||||
Config.Settings1.Default.Save();
|
||||
Edit = false;
|
||||
OnPropertyChanged("AlerteList");
|
||||
}
|
||||
public void EditCMD()
|
||||
{
|
||||
if (AlertSelect != "" || Edit)
|
||||
{
|
||||
Edit = (Edit ? false : true);
|
||||
NouvelleAlert = AlertSelect;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user