コード例 #1
0
        static void Main(string[] args)
        {
            InternetStore Market1 = new InternetStore("Market1");
            Merchandise   merch1  = new Merchandise(23, "Coffee", 58.00, 56784904, "Masha", Market1);

            Market1.AddProduct(merch1);
            Merchandise merch2 = new Merchandise(10, "Tea", 29.99, 98564901, "Masha", Market1);

            Market1.AddProduct(merch2);
            Klient klient1 = new Klient("Ivan Petrovich", 120, Market1);

            klient1.AddOrder(Market1);
            merch1.FromOrderToSale(Market1);
            klient1.AddOrder(Market1);
            merch1.FromOrderToSale(Market1);
            Console.ReadKey();
        }
コード例 #2
0
 public void RegistrationSale(Merchandise merchandise)
 {
     AllSales.Add(merchandise);
 }
コード例 #3
0
 public void AddProduct(Merchandise product)
 {
     AllProducts.Add(product);
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: Dima160288/CS_Elementary_2
 static void Main(string[] args)
 {
     InternetStore Market1 = new InternetStore("Market1");
     Merchandise   merch1  = new Merchandise("Coffee", 58.00, 56784904, "Masha");
 }