private void LoadType() { TypesImmobilier = new ObservableCollection <TypeImmobilier>(_ctx.TypeImmobiliers); if (CurrentType == null) { CurrentType = new TypeImmobilier(); } }
public VenteViewModel(TypeImmobilier t) { ListeVentes = new ObservableCollection <Vente>(); foreach (Vente v in _ctx.Ventes) { if (v.Offre.TypeId == t.Id) { ListeVentes.Add(v); } } LoadCommandes(); Date_de = DateTime.Parse("1.1.2015"); Date_a = DateTime.Parse("1.1.2016"); }
public BienImmobilier(string numCadastre, string adresse, string image, double coutAcquisition, double chargesTrimestr, double loyerTrimestr, int k) { NumCadastre = numCadastre; Adresse = adresse; Image = image; CoutAcquisition = coutAcquisition; ChargesTrimestr = chargesTrimestr; LoyerTrimestr = loyerTrimestr; if (k == 0) { Type = TypeImmobilier.Bureau; } else { Type = TypeImmobilier.Habitation; } }
public ListeOffresWindow(TypeImmobilier t) { InitializeComponent(); DataContext = new OffreViewModel(t); }
public void GetNewType() { CurrentType = new TypeImmobilier(); }
public DemandeViewModel(TypeImmobilier t) { ListeDemandes = new ObservableCollection <Demande>(t.Demandes); InitConstr(); }
public ListeVentesWindow(TypeImmobilier t) : this() { DataContext = new VenteViewModel(t); }
public OffreViewModel(TypeImmobilier t) { ListeOffres = new ObservableCollection <Offre>(t.Offres); SupprimerCommand = new RelayCommand(OnDelete); ImprimerCommand = new RelayCommand(Print); }
public ListeDemandesWindow(TypeImmobilier t) : this() { DataContext = new DemandeViewModel(t); }