Add somme litle features
This commit is contained in:
@@ -18,7 +18,7 @@ namespace ProjetTheAlone.ViewModel
|
||||
|
||||
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 int nAjout;
|
||||
private int typeplat=0;
|
||||
private C_T_plat.TypePlat_E typeplat=0;
|
||||
private bool _ActiverUneFiche;
|
||||
public bool ActiverUneFiche
|
||||
{
|
||||
@@ -64,6 +64,7 @@ namespace ProjetTheAlone.ViewModel
|
||||
UnPlat.Nom = "Nom du plat";
|
||||
BcpPlats = ChargerPersonnes(chConnexion);
|
||||
ActiverUneFiche = false;
|
||||
Typeplat = C_T_plat.TypePlat_E.Soupe;
|
||||
cConfirmer = new BaseCommande(Confirmer);
|
||||
cAnnuler = new BaseCommande(Annuler);
|
||||
cAjouter = new BaseCommande(Ajouter);
|
||||
@@ -77,9 +78,10 @@ namespace ProjetTheAlone.ViewModel
|
||||
public BaseCommande cAjouter { get; set; }
|
||||
public BaseCommande cModifier { get; set; }
|
||||
public BaseCommande cSupprimer { get; set; }
|
||||
#endregion
|
||||
public C_T_plat.TypePlat_E Typeplat { get => typeplat; set =>AssignerChamp<C_T_plat.TypePlat_E>(ref typeplat, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
|
||||
#endregion
|
||||
|
||||
private ObservableCollection<C_T_plat> ChargerPersonnes(string chConn)
|
||||
private ObservableCollection<C_T_plat> ChargerPersonnes(string chConn)
|
||||
{
|
||||
ObservableCollection<C_T_plat> rep = new ObservableCollection<C_T_plat>();
|
||||
List<C_T_plat> lTmp = new G_T_plat(chConn).Lire("P_nom");
|
||||
|
||||
Reference in New Issue
Block a user