コード例 #1
0
        public void TestRetrieveAllArt()
        {
            Console.WriteLine("TestRetrieveAll called");
            List <Art> aCollection = ctrArt.RetrieveAll();

            Assert.IsNotNull(aCollection, "aCollection is null");

            Console.WriteLine(aCollection.Count);
        }
コード例 #2
0
 private void loadArtPieces()
 {
     try
     {
         dgvAtrList.DataSource = ctrArt.RetrieveAll();
     }
     catch
     {
     }
 }
コード例 #3
0
        public Budgivning(Auction au)
        {
            InitializeComponent();

            lblHeader.Text = "Auktion den " + au.Date;

            currentAuction = au;

            ctrArt = new CtrArt();
            ctrAuc = new CtrAuction();

            dgvArts.DataSource = ctrArt.RetrieveAll(au.Id);
        }
コード例 #4
0
        private void getArtData()
        {
            CtrArt ctrArt = new CtrArt();

            lbxAvailableArt.DataSource = ctrArt.RetrieveAll().Where(x => x.AuctionId == null).ToList();
        }