public Order(DateTime date, Client client, Product product, Manager manager, float sum) { Date = date; Client = client; Product = product; Manager = manager; Sum = sum; }
private void CreateOrder(string[] item, string nameManager) { var date = Convert.ToDateTime(item[0]); var client = new Client(item [1],null,0); var product = new Product(item[2]); var sum = (float)Convert.ToDouble(item[3]); var manager = new Manager(nameManager,""); _orders.Add(new Order(date,client,product,manager,sum)); }