Modification de la gestion des adresses
This commit is contained in:
parent
b56f785e3d
commit
c92d04fabf
@ -38,15 +38,7 @@
|
||||
</TextBox.Text>
|
||||
</TextBox>
|
||||
<Label>Nom de naissance :</Label>
|
||||
<TextBox Name="nomNaissanceTextBox" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" Validation.Error="ValidationError" Binding.TargetUpdated="BindingTargetUpdated" Binding.SourceUpdated="BindingSourceUpdated" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="150">
|
||||
<TextBox.Text>
|
||||
<Binding Path="NomNaissance" NotifyOnSourceUpdated="True" NotifyOnTargetUpdated="true" NotifyOnValidationError="true">
|
||||
<Binding.ValidationRules>
|
||||
<Validation:MandatoryString/>
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</TextBox.Text>
|
||||
</TextBox>
|
||||
<TextBox Name="nomNaissanceTextBox" Text="{Binding Path=NomNaissance}" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="150"/>
|
||||
<Label>Prénom :</Label>
|
||||
<TextBox Name="prenomTextBox" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" Validation.Error="ValidationError" Binding.TargetUpdated="BindingTargetUpdated" Binding.SourceUpdated="BindingSourceUpdated" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="150">
|
||||
<TextBox.Text>
|
||||
@ -79,20 +71,10 @@
|
||||
</GroupBox>
|
||||
<GroupBox Header="Adresse Locale" Margin="10,10,0,0" VerticalAlignment="Top">
|
||||
<StackPanel>
|
||||
<Label>Numéro :</Label>
|
||||
<TextBox Name="adresseNumeroTextBox" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" Validation.Error="ValidationError" Binding.TargetUpdated="BindingTargetUpdated" Binding.SourceUpdated="BindingSourceUpdated" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="50">
|
||||
<Label>Numéro et rue :</Label>
|
||||
<TextBox Name="adresseTextBox" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" Validation.Error="ValidationError" Binding.TargetUpdated="BindingTargetUpdated" Binding.SourceUpdated="BindingSourceUpdated" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="150">
|
||||
<TextBox.Text>
|
||||
<Binding Path="AdresseNumero" NotifyOnSourceUpdated="True" NotifyOnTargetUpdated="true" NotifyOnValidationError="true">
|
||||
<Binding.ValidationRules>
|
||||
<Validation:MandatoryString/>
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</TextBox.Text>
|
||||
</TextBox>
|
||||
<Label>Rue :</Label>
|
||||
<TextBox Name="adresseRueTextBox" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" Validation.Error="ValidationError" Binding.TargetUpdated="BindingTargetUpdated" Binding.SourceUpdated="BindingSourceUpdated" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="150">
|
||||
<TextBox.Text>
|
||||
<Binding Path="AdresseRue" NotifyOnSourceUpdated="True" NotifyOnTargetUpdated="true" NotifyOnValidationError="true">
|
||||
<Binding Path="Adresse" NotifyOnSourceUpdated="True" NotifyOnTargetUpdated="true" NotifyOnValidationError="true">
|
||||
<Binding.ValidationRules>
|
||||
<Validation:MandatoryString/>
|
||||
</Binding.ValidationRules>
|
||||
@ -118,12 +100,10 @@
|
||||
</Style>
|
||||
</GroupBox.Style>
|
||||
<StackPanel>
|
||||
<Label IsEnabled="{Binding IsEnabled, ElementName=mainAddrGroupBox}">Numéro :</Label>
|
||||
<TextBox Name="adresseExtNumeroTextBox" Text="{Binding Path=AdresseExtNumero}" IsEnabled="{Binding IsEnabled, ElementName=mainAddrGroupBox}" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="50"/>
|
||||
<Label IsEnabled="{Binding IsEnabled, ElementName=mainAddrGroupBox}">Rue :</Label>
|
||||
<TextBox Name="adresseExtRueTextBox" Text="{Binding Path=AdresseExtRue}" IsEnabled="{Binding IsEnabled, ElementName=mainAddrGroupBox}" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="150"/>
|
||||
<Label IsEnabled="{Binding IsEnabled, ElementName=mainAddrGroupBox}">Numéro et rue :</Label>
|
||||
<TextBox Name="adresseExtTextBox" Text="{Binding Path=AdresseExt}" IsEnabled="{Binding IsEnabled, ElementName=mainAddrGroupBox}" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="150"/>
|
||||
<Label IsEnabled="{Binding IsEnabled, ElementName=mainAddrGroupBox}">Code postal :</Label>
|
||||
<TextBox Name="adresseExtCPTextBox" Text="{Binding Path=AdresseExtCP}" IsEnabled="{Binding IsEnabled, ElementName=mainAddrGroupBox}" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="80"/>
|
||||
<TextBox Name="adresseExtCPTextBox" Text="{Binding Path=AdresseExtCP}" IsEnabled="{Binding IsEnabled, ElementName=mainAddrGroupBox}" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="60"/>
|
||||
<Label IsEnabled="{Binding IsEnabled, ElementName=mainAddrGroupBox}">Ville :</Label>
|
||||
<TextBox Name="adresseExtVilleTextBox" Text="{Binding Path=AdresseExtVille}" IsEnabled="{Binding IsEnabled, ElementName=mainAddrGroupBox}" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="150"/>
|
||||
</StackPanel>
|
||||
|
@ -6,9 +6,6 @@ using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace Hermes {
|
||||
/// <summary>
|
||||
/// Logique d'interaction pour CitoyenModal.xaml
|
||||
/// </summary>
|
||||
public partial class CitoyenModal : Window {
|
||||
private ModelContext dbContext = null;
|
||||
private Citoyen citoyen = null;
|
||||
@ -72,8 +69,7 @@ namespace Hermes {
|
||||
nomNaissanceTextBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
||||
prenomTextBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
||||
ageTextBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
||||
adresseNumeroTextBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
||||
adresseRueTextBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
||||
adresseTextBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
||||
if(_isInvalidElements.Count == 0) {
|
||||
if(_modeCreate) {
|
||||
((Citoyen) DataContext).DateCreation = DateTime.Now;
|
||||
|
@ -62,6 +62,10 @@
|
||||
<Reference Include="EntityFramework.SqlServerCompact, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<HintPath>packages\EntityFramework.SqlServerCompact.6.4.4\lib\net45\EntityFramework.SqlServerCompact.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
|
||||
<HintPath>packages\Microsoft.Office.Interop.Outlook.15.0.4797.1003\lib\net20\Microsoft.Office.Interop.Outlook.dll</HintPath>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Data" />
|
||||
@ -90,9 +94,9 @@
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Compile Include="Converter\NegateBoolean.cs" />
|
||||
<Compile Include="Migrations\202011292109022_V1.cs" />
|
||||
<Compile Include="Migrations\202011292109022_V1.designer.cs">
|
||||
<DependentUpon>202011292109022_V1.cs</DependentUpon>
|
||||
<Compile Include="Migrations\202012032233531_V1.cs" />
|
||||
<Compile Include="Migrations\202012032233531_V1.designer.cs">
|
||||
<DependentUpon>202012032233531_V1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\Configuration.cs" />
|
||||
<Compile Include="Model\Citoyen.cs" />
|
||||
@ -141,8 +145,8 @@
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Migrations\202011292109022_V1.resx">
|
||||
<DependentUpon>202011292109022_V1.cs</DependentUpon>
|
||||
<EmbeddedResource Include="Migrations\202012032233531_V1.resx">
|
||||
<DependentUpon>202012032233531_V1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
|
@ -37,11 +37,9 @@
|
||||
<MenuItem Name="professionViewCheckBox" Header="Profession" IsCheckable="true"/>
|
||||
<MenuItem Name="typeResidenceViewCheckBox" Header="Résidence" IsCheckable="true" IsChecked="True"/>
|
||||
<MenuItem Name="quartierViewCheckBox" Header="Quartier" IsCheckable="true"/>
|
||||
<MenuItem Name="adresseNumeroViewCheckBox" Header="Numéro de rue" IsCheckable="true" IsChecked="True"/>
|
||||
<MenuItem Name="adresseRueViewCheckBox" Header="Rue" IsCheckable="true" IsChecked="True"/>
|
||||
<MenuItem Name="adresseViewCheckBox" Header="Adresse locale" IsCheckable="true" IsChecked="True"/>
|
||||
<MenuItem Name="adresseBatimentViewCheckBox" Header="Bâtiment" IsCheckable="true"/>
|
||||
<MenuItem Name="adresseExtNumeroViewCheckBox" Header="Numéro de rue (autre)" IsCheckable="true"/>
|
||||
<MenuItem Name="adresseExtRueViewCheckBox" Header="Rue (autre)" IsCheckable="true"/>
|
||||
<MenuItem Name="adresseExtViewCheckBox" Header="Adresse" IsCheckable="true"/>
|
||||
<MenuItem Name="adresseExtCPViewCheckBox" Header="Code postal (autre)" IsCheckable="true"/>
|
||||
<MenuItem Name="adresseExtVilleViewCheckBox" Header="Ville (autre)" IsCheckable="true"/>
|
||||
<MenuItem Name="mailViewCheckBox" Header="E-Mail" IsCheckable="true"/>
|
||||
@ -108,12 +106,10 @@
|
||||
<DataGridTextColumn Header="Profession" Visibility="{Binding Source={x:Reference professionViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding Profession}" Width="*"/>
|
||||
<DataGridTextColumn Header="Résidence" Visibility="{Binding Source={x:Reference typeResidenceViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding TypeResidenceLabel}" Width="*"/>
|
||||
<DataGridTextColumn Header="Quartier" Visibility="{Binding Source={x:Reference quartierViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding Quartier}" Width="*"/>
|
||||
<DataGridTextColumn Header="Numéro de rue" Visibility="{Binding Source={x:Reference adresseNumeroViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding AdresseNumero}" Width="*"/>
|
||||
<DataGridTextColumn Header="Rue" Visibility="{Binding Source={x:Reference adresseRueViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding AdresseRue}" Width="*"/>
|
||||
<DataGridTextColumn Header="Adresse Locale" Visibility="{Binding Source={x:Reference adresseViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding Adresse}" Width="*"/>
|
||||
<DataGridTextColumn Header="Bâtiment" Visibility="{Binding Source={x:Reference adresseBatimentViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding AdresseBatiment}" Width="*"/>
|
||||
<DataGridTextColumn Header="Numéro de rue (autre)" Visibility="{Binding Source={x:Reference adresseExtNumeroViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding AdresseExtNumero}" Width="*"/>
|
||||
<DataGridTextColumn Header="Rue (autre)" Visibility="{Binding Source={x:Reference adresseExtRueViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding AdresseExtRue}" Width="*"/>
|
||||
<DataGridTextColumn Header="Code postal (autre)" Visibility="{Binding Source={x:Reference adresseExtCPViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding AdresseExtCP}" Width="*"/>
|
||||
<DataGridTextColumn Header="Adresse" Visibility="{Binding Source={x:Reference adresseExtViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding AdresseExt}" Width="*"/>
|
||||
<DataGridTextColumn Header="Code postal" Visibility="{Binding Source={x:Reference adresseExtCPViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding AdresseExtCP}" Width="*"/>
|
||||
<DataGridTextColumn Header="Ville" Visibility="{Binding Source={x:Reference adresseExtVilleViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding AdresseExtVille}" Width="*"/>
|
||||
<DataGridTextColumn Header="E-Mail" Visibility="{Binding Source={x:Reference mailViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding Mail}" Width="*"/>
|
||||
<DataGridTextColumn Header="Téléphone" Visibility="{Binding Source={x:Reference telViewCheckBox}, Path=IsChecked, Converter={StaticResource Bool2VisibilityConv}}" Binding="{Binding Tel}" Width="*"/>
|
||||
|
@ -7,9 +7,6 @@ using System.Windows.Input;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace Hermes {
|
||||
/// <summary>
|
||||
/// Logique d'interaction pour MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window {
|
||||
private ModelContext dbContext = null;
|
||||
private CitoyenModal citoyenModal = new CitoyenModal();
|
||||
@ -32,7 +29,6 @@ namespace Hermes {
|
||||
dbContext.Preferences.Load();
|
||||
citoyenCollectionViewSource = (CollectionViewSource) this.FindResource("citoyenCollectionViewSource");
|
||||
citoyenCollectionViewSource.Source = dbContext.CitoyenSet.Local;
|
||||
//dgCitoyens.ItemsSource = dbContext.CitoyenSet.Local;
|
||||
}
|
||||
|
||||
private void Options_Click(object sender, RoutedEventArgs e) {
|
||||
@ -127,7 +123,7 @@ namespace Hermes {
|
||||
}
|
||||
|
||||
string addrBat = citoyen.AdresseBatiment == null ? "" : citoyen.AdresseBatiment;
|
||||
string addr = $"{citoyen.AdresseNumero} {citoyen.AdresseRue} {addrBat}".ToLower();
|
||||
string addr = $"{citoyen.Adresse} {addrBat}".ToLower();
|
||||
if(!String.IsNullOrEmpty(adresseFilterTextBox.Text)) {
|
||||
if(!addr.Contains(adresseFilterTextBox.Text.ToLower())) {
|
||||
e.Accepted = false;
|
||||
|
@ -13,7 +13,7 @@ namespace Hermes.Migrations
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "202011292109022_V1"; }
|
||||
get { return "202012032233531_V1"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
@ -23,11 +23,9 @@
|
||||
Tel = c.String(maxLength: 4000),
|
||||
TelPort = c.String(maxLength: 4000),
|
||||
Quartier = c.String(maxLength: 4000),
|
||||
AdresseNumero = c.String(maxLength: 4000),
|
||||
AdresseRue = c.String(maxLength: 4000),
|
||||
Adresse = c.String(maxLength: 4000),
|
||||
AdresseBatiment = c.String(maxLength: 4000),
|
||||
AdresseExtNumero = c.String(maxLength: 4000),
|
||||
AdresseExtRue = c.String(maxLength: 4000),
|
||||
AdresseExt = c.String(maxLength: 4000),
|
||||
AdresseExtCP = c.String(maxLength: 4000),
|
||||
AdresseExtVille = c.String(maxLength: 4000),
|
||||
DateCreation = c.DateTime(nullable: false),
|
@ -118,7 +118,7 @@
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Target" xml:space="preserve">
|
||||
<value>H4sIAAAAAAAEAO1azW7jNhC+F+g7CDpnrfzsoQ3sXWSdpA26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FdgtkQt8FTVcZ7Xh6ZRfErKZoB80W+73QsiI2H2i50g+xXhabqPXVJvLUMQK9mUqcRi4xik0zO3XKXdViYOfktQWkQwLbyr2fJFbUwlWIgtgTpwWlD0aljq3iVMgjO0ujDDS3FNKLctAo+6ZZCfb+6L1Rk6VbbAuN9IJJCOsxdyMVBBO9YeL+yVwQLyDmMPms/2GQb7shnGIiVGkLZydrtUH+v2eo7kjps26T9dG7UKrzx7t9Zs+RgTnd5i9EeM9EtHRqJXLPYfaQmI0h72Dg9VH1YLCtk2kficoYyHTT0ZxUD6Zn62B6SdWHhtLDaQd7wayOnAfDNSfMgwEbA+Whcc358dD4lXHxHqDL4dkewGtTs0FDgzn7bYsMH5r9dgTcafb730iBxux1sOvdj9M0Jqs7IvcbpDbHc50mpdvGpGkxiQ66DPEoqZrZomwY4QND1DY5Q0xZm2X01Kn+zmV6gdl0XULoX71w8PTbLEHzPdd8FeYXjaesapRvMdMsKIJvm5xhrlkRT+Gyp0sDPWR/IizGLZfBEvxrfherKFZnGMmCJat1LFNnu/xklFzXeXoX6W9yiCOgmlSHpzt+HlPmF3pftYSnNyC0X2ahALVylQ4J602BdBvyjkCZ+S4gAq4DyQMEEUMwecdd8gK76PYo4RusibfJ+6C3Qd6/iLrZpxeUrAUJZIZR8uNX9GE/eP3yDwH949LuJQAA</value>
|
||||
</data>
|
||||
<data name="DefaultSchema" xml:space="preserve">
|
||||
<value>dbo</value>
|
@ -18,11 +18,9 @@ namespace Hermes.Model {
|
||||
private string _tel;
|
||||
private string _telPort;
|
||||
private string _quartier;
|
||||
private string _adresseNumero;
|
||||
private string _adresseRue;
|
||||
private string _adresse;
|
||||
private string _adresseBatiment;
|
||||
private string _adresseExtNumero;
|
||||
private string _adresseExtRue;
|
||||
private string _adresseExt;
|
||||
private string _adresseExtCP;
|
||||
private string _adresseExtVille;
|
||||
private DateTime _dateCreation;
|
||||
@ -79,8 +77,7 @@ namespace Hermes.Model {
|
||||
set {
|
||||
_typeResidence = value;
|
||||
if(_typeResidence == false) {
|
||||
AdresseExtNumero = null;
|
||||
AdresseExtRue = null;
|
||||
AdresseExt = null;
|
||||
AdresseExtCP = null;
|
||||
AdresseExtVille = null;
|
||||
}
|
||||
@ -116,17 +113,10 @@ namespace Hermes.Model {
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
public string AdresseNumero {
|
||||
get => _adresseNumero;
|
||||
public string Adresse {
|
||||
get => _adresse;
|
||||
set {
|
||||
_adresseNumero = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
public string AdresseRue {
|
||||
get => _adresseRue;
|
||||
set {
|
||||
_adresseRue = value;
|
||||
_adresse = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
@ -137,17 +127,10 @@ namespace Hermes.Model {
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
public string AdresseExtNumero {
|
||||
get => TypeResidence == false ? null : _adresseExtNumero;
|
||||
public string AdresseExt {
|
||||
get => TypeResidence == false ? null : _adresseExt;
|
||||
set {
|
||||
_adresseExtNumero = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
public string AdresseExtRue {
|
||||
get => TypeResidence == false ? null : _adresseExtRue;
|
||||
set {
|
||||
_adresseExtRue = value;
|
||||
_adresseExt = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
@ -240,11 +223,9 @@ namespace Hermes.Model {
|
||||
citoyen.Tel = Tel;
|
||||
citoyen.TelPort = TelPort;
|
||||
citoyen.Quartier = Quartier;
|
||||
citoyen.AdresseNumero = AdresseNumero;
|
||||
citoyen.AdresseRue = AdresseRue;
|
||||
citoyen.Adresse = Adresse;
|
||||
citoyen.AdresseBatiment = AdresseBatiment;
|
||||
citoyen.AdresseExtNumero = AdresseExtNumero;
|
||||
citoyen.AdresseExtRue = AdresseExtRue;
|
||||
citoyen.AdresseExt = AdresseExt;
|
||||
citoyen.AdresseExtCP = AdresseExtCP;
|
||||
citoyen.AdresseExtVille = AdresseExtVille;
|
||||
citoyen.DateCreation = DateCreation;
|
||||
|
@ -2,9 +2,6 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Hermes {
|
||||
/// <summary>
|
||||
/// Logique d'interaction pour PreferencesModal.xaml
|
||||
/// </summary>
|
||||
public partial class PreferencesModal : Window {
|
||||
private ModelContext dbContext = null;
|
||||
|
||||
|
@ -2,5 +2,6 @@
|
||||
<packages>
|
||||
<package id="EntityFramework" version="6.4.4" targetFramework="net48" />
|
||||
<package id="EntityFramework.SqlServerCompact" version="6.4.4" targetFramework="net48" />
|
||||
<package id="Microsoft.Office.Interop.Outlook" version="15.0.4797.1003" targetFramework="net48" />
|
||||
<package id="Microsoft.SqlServer.Compact" version="4.0.8876.1" targetFramework="net48" />
|
||||
</packages>
|
Loading…
x
Reference in New Issue
Block a user