public Worker(string name, string surname, int exp, Corporation corporation) { Name = name; Surname = surname; Experience = exp; corporation.Worker_List.Add(this); }
public Client(string name, string surname, int amountOfMoney, Corporation corporation) { Name = name; Surname = surname; AmountOfMoney = amountOfMoney; corporation.Client_List.Add(this); }
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); }
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); }
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); } }
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); } }
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); }
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); }