Example #1
0
        public ListeEncheresView(Window win = null, List <Enchere> selectedEncheres = null)
        {
            InitializeComponent();

            _selectedEncheres = selectedEncheres;

            if (selectedEncheres == null)
            {
                selectMode.Visibility = Visibility.Collapsed;
            }


            _encheres       = new ObservableCollection <Enchere>(EnchereORM.GetAllEnchere());
            _contextEnchere = new Enchere();
            GenerateDataList();
        }
Example #2
0
        public HomeTabView(MainWindow parent)
        {
            this.parent = parent;
            InitializeComponent();

            DALconnection.OpenConnection();

            // var user = UtilisateurORM.GetAllUtilisateur();


            // var test = EnchereDAL.SelectAllEnchere();
            // var user = EnchereORM.GetAllEnchere();
            // var user = EnchereORM.GetEnchereById("enchere1");
            // OrdreAchat ordreAchat = OrdreAchatORM.GetOrdreAchatById("ordreAchat1");
            // Lot lot = LotORM.GetLotById("lot1");
            // Commissaire commissaire = CommissaireORM.GetCommissaireById("commissaire1");
            //
            // Enchere enchere = new Enchere("EnchereTestPOUEEEEET", 10.1, false, DateTime.Now, ordreAchat,lot,commissaire, new Utilisateur());
            // EnchereORM.InsertOrAddNewEnchere(enchere);
            var list = EnchereORM.GetAllEnchere();
            var i    = 1;
        }