コード例 #1
0
ファイル: Angle.cs プロジェクト: victorsmits/Projet_KitBox
        public Angle(int len, string color, int qty)
        {
            Oledb.Connection();
            length     = len;
            angleColor = color;
            // Getting the stock reference by the length and color
            stockRef = Oledb.SqlRequest("SELECT Référence FROM Piece WHERE Référence LIKE 'COR%' AND hauteur = " + length.ToString() + " AND Couleur = '" + angleColor + "'");
            quantity = qty;
            CalculPrice();

            // Updating the reservation in the data base
            Oledb.UpdateReservation(quantity, stockRef);

            stock = Oledb.GetDBStock(stockRef);
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: victorsmits/Projet_KitBox
 private void Form1_Load(object sender, EventArgs e) //Connection to the DB and loading the data into the box
 {
     Oledb.Connection();
     Loaddata();
 }
コード例 #3
0
 private void LoadList(object sender, EventArgs e) //loading data
 {
     Oledb.Connection();
     Loaddata();
 }