private void InitializeDataCount() { Task.Run(() => { TestFacade facade = new TestFacade(); CustomersField.CurrentItemsNumber = facade.GetAllCustomers().Count; AirlinesField.CurrentItemsNumber = facade.GetAllAirlineCompanies().Count; FlightsField.CurrentItemsNumber = facade.GetAllFlights().Count; TicketsField.CurrentItemsNumber = facade.GetAllTickets().Count; }); }