Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            grpbxMain.Location    = new Point(0, -6);
            this.Size             = new Size(420, 260);
            grpbxLogin.Visible    = false;
            grpbxSignup.Visible   = false;
            grpbxSupplier.Visible = false;
            IdCount      Cn   = IdCount.Creator();
            CustomerList list = CustomerList.CreateList();
            Customer     cs1  = new Customer();

            cs1.CustomerID1 = Cn.CustumerId1;
            Cn.CustumerId1 += 1;
            cs1.Name1       = "Mihai Andronache";
            cs1.Address1    = "Sector 1 Bucuresti";
            cs1.Email1      = "*****@*****.**";
            cs1.Username1   = "Mihai.26";
            cs1.Password1   = "123456";
            list.Cstmrlist.Add(cs1);
            Customer cs2 = new Customer();

            cs2.CustomerID1 = Cn.CustumerId1;
            Cn.CustumerId1 += 1;
            cs2.Name1       = "Beldea Cornelia";
            cs2.Address1    = "Upstate New York";
            cs2.Email1      = "*****@*****.**";
            cs2.Username1   = "C.34";
            cs2.Password1   = "123456";
            list.Cstmrlist.Add(cs2);
            Customer cs3 = new Customer();

            cs3.CustomerID1 = Cn.CustumerId1;
            Cn.CustumerId1 += 1;
            cs3.Name1       = "Paun Cosmin";
            cs3.Address1    = "Paris,Franta";
            cs3.Email1      = "*****@*****.**";
            cs3.Username1   = "Cosmin.07";
            cs3.Password1   = "123456";
            list.Cstmrlist.Add(cs3);
            Customer cs4 = new Customer();

            cs4.CustomerID1 = Cn.CustumerId1;
            Cn.CustumerId1 += 1;
            cs4.Name1       = "Qui-Gon-Jinn";
            cs4.Address1    = "Spatiu";
            cs4.Email1      = "*****@*****.**";
            cs4.Username1   = "QCJTheBest";
            cs4.Password1   = "123456";
            list.Cstmrlist.Add(cs4);
            Customer cs5 = new Customer();

            cs5.CustomerID1 = Cn.CustumerId1;
            Cn.CustumerId1 += 1;
            cs5.Name1       = "Cristina Ovidiu";
            cs5.Address1    = "Braila,Braila";
            cs5.Email1      = "*****@*****.**";
            cs5.Username1   = "Ovicriss.06";
            cs5.Password1   = "123456";
            list.Cstmrlist.Add(cs5);


            ProductLists Prlist = ProductLists.CreateList();
            Book         bk1    = new Book(Cn.ProductId1, "Cel mai iubit dintre pamanteni", 32.68, 6, 78975470, "Daniel Negreanu", "Humanitas", 724);

            Cn.ProductId1 += 1;
            Prlist.Booklist.Add(bk1);
            Book bk2 = new Book(Cn.ProductId1, "The Dark Forest", 15.6, 12, 97897560, "Adam Fawer", "April Y.", 475);

            Cn.ProductId1 += 1;
            Prlist.Booklist.Add(bk2);
            Book bk3 = new Book(Cn.ProductId1, "Cei Trei Muschetari", 9.88, 14, 97860552, "Gabreil Garcia Marquez", "Editura Universitara", 136);

            Cn.ProductId1 += 1;
            Prlist.Booklist.Add(bk3);
            MusicCD ms1 = new MusicCD(Cn.ProductId1, "Red", 10, 5, "Taylor Swift", "Pop");

            Cn.ProductId1 += 1;
            Prlist.MusicCDlist.Add(ms1);
            MusicCD ms2 = new MusicCD(Cn.ProductId1, "Rolling Deep", 12, 13, "Adele", "Caz");

            Cn.ProductId1 += 1;
            Prlist.MusicCDlist.Add(ms2);
            MusicCD ms3 = new MusicCD(Cn.ProductId1, "Every Way That I Can", 15, 11, "Sertab Erener", "pop");

            Cn.ProductId1 += 1;
            Prlist.MusicCDlist.Add(ms3);
            Magazine mg1 = new Magazine(Cn.ProductId1, "4-4-2", 4.3, 12, 54657856, "Sport");

            Cn.ProductId1 += 1;
            Prlist.Magazinelist.Add(mg1);
            Magazine mg2 = new Magazine(Cn.ProductId1, "Otomobil", 5.3, 4, 48567896, "Auto");

            Cn.ProductId1 += 1;
            Prlist.Magazinelist.Add(mg2);
            Magazine mg3 = new Magazine(Cn.ProductId1, "PcMagazine", 6, 6, 85623458, "Technology");

            Cn.ProductId1 += 1;
            Prlist.Magazinelist.Add(mg3);
        }