Beispiel #1
0
            public static void PersonGen(int Len, int ramControler)
            {
                len          = Len;
                RamControler = ramControler;

                Modals.Persons.Person[] Pr = new Modals.Persons.Person[RamControler];
                for (int i = 0; i < len; i++)
                {
                    for (int j = 0; j < RamControler; j++)
                    {
                        Pr[j] = new Modals.Persons.Person {
                            FullName = RandomGen.GetFulNameDefault(), Password = RandomGen.GetPasswordDefault(8), AccessLevel = 1
                        };
                    }
                    for (int j = 0; j < RamControler; j++)
                    {
                        try
                        {
                            ConectionToDb.AddNewPeronNoLimited(Pr, RamControler);
                        }
                        catch (Exception ex)
                        {
                            throw ex;
                        }
                    }
                }
            }
Beispiel #2
0
 public void ChangeProductStore(int NewStore)
 {
     ConectionToDb.ChangeProductStore(NewStore, this.ProductBarcode);
 }
Beispiel #3
0
 public Product(string Name, int store, string ProductPhotoAdress, string Explanations, string Category, string ManuFacturer, int PB)
 {
     ConectionToDb.AddNewProduct(Name, store, ProductPhotoAdress, Explanations, Category, ManuFacturer, PB);
 }