Esempio n. 1
0
 public Worker(string name, string surname, int exp, Corporation corporation)
 {
     Name       = name;
     Surname    = surname;
     Experience = exp;
     corporation.Worker_List.Add(this);
 }
Esempio n. 2
0
 public Client(string name, string surname, int amountOfMoney, Corporation corporation)
 {
     Name          = name;
     Surname       = surname;
     AmountOfMoney = amountOfMoney;
     corporation.Client_List.Add(this);
 }
Esempio n. 3
0
 public Area(int square, int metrCost, string location, bool clear, Corporation corporation)
 {
     Square   = square;
     MetrCost = metrCost;
     Location = location;
     Clear    = clear;
     corporation.Area_List.Add(this);
 }
Esempio n. 4
0
 public Shop(int square, int metrCost, string location, string type, Corporation corporation)
 {
     Square   = square;
     MetrCost = metrCost;
     Location = location;
     Type     = type;
     corporation.Shop_List.Add(this);
 }
Esempio n. 5
0
        public Apartament(string file, Corporation corporation)
        {
            string str;

            try
            {
                using (var sr = new StreamReader(file))
                {
                    while ((str = sr.ReadLine()) != null)
                    {
                        string[] information = str.Split(',');
                        new Apartament(int.Parse(information[0]), int.Parse(information[1]), information[2], Convert.ToBoolean(information[3]), Convert.ToBoolean(information[4]), int.Parse(information[5]), corporation);
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }
Esempio n. 6
0
        public Shop(string file, Corporation corporation)
        {
            string str;

            try
            {
                using (var sr = new StreamReader(file))
                {
                    while ((str = sr.ReadLine()) != null)
                    {
                        string[] information = str.Split(',');
                        new Shop(int.Parse(information[0]), int.Parse(information[1]), information[2], information[3], corporation);
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }
Esempio n. 7
0
 public Apartament(int square, int metrCost, string location, bool elevator, bool furniture, int floors, Corporation corporation)
 {
     Square    = square;
     MetrCost  = metrCost;
     Location  = location;
     Elevator  = elevator;
     Furniture = furniture;
     Floors    = floors;
     corporation.Apartament_List.Add(this);
 }
Esempio n. 8
0
 public House(int square, int metrCost, string location, int floors, bool swimmingpool, Corporation corporation)
 {
     Square       = square;
     MetrCost     = metrCost;
     Location     = location;
     Floors       = floors;
     SwimmingPool = swimmingpool;
     corporation.House_List.Add(this);
 }