public void InsRandDate_cus(int count) // int count 갯수만큼 정보가 나옴.
 {
     for (int i = 0; i < count; i++)
     {
         listCust.Add(new Customer(rand.getName(), rand.getAge(), rand.getTel(), rand.getAddr(), rand.getGender()));
     }
 }
 public void InsRandDate_sell(int count) // int count 갯수만큼 정보가 나옴.
 {
     for (int i = 0; i < count; i++)
     {
         listSel.Add(new Seller(rand.getName(),
                                rand.getTel(),
                                rand.getJikwi(),
                                rand.getOffice()));
     }
 }
Beispiel #3
0
 public void insRandData(int count)
 {
     for (int i = 0; i < count; i++)
     {
         listSell.Add(new Seller(
                          rand.getName(),
                          rand.getTel(),
                          rand.getJikwi(),
                          rand.getOffice()));
     }
 }
Beispiel #4
0
 public void insRandData(int count)
 {
     for (int i = 0; i < count; i++)
     {
         listCust.Add(new Customer(
                          rand.getName(),
                          rand.getAge(),
                          rand.getTel(),
                          rand.getAddr(),
                          rand.getGender()));
     }
 }
        static void Main(string[] args)
        {
            RandData rand = new RandData();

            Customer[] cs = new Customer[10];

            for (int i = 0; i < cs.Length; i++)
            {
                cs[i] = new Customer(rand.getName(), rand.getTel(),
                                     rand.getAddress(), rand.getModel(), rand.getColor(),
                                     rand.getYear(), rand.getCompany());
                cs[i].printCustomerInfo();
                //Console.WriteLine(cs[i].ToString());
            }
        }