public CCashier(ref DataAccessBank bank, ref DataAccessBasicReis basicReis, ref DataAccessReis reis, ref DataAccessClients clients, ref DataAccessPlains aircrafts) { BankEntitie = bank; ReisEntitie = reis; ClientsEntitie = clients; BasicReisEntitie = basicReis; PlainsEntitie = aircrafts; }
static void Main(string[] args) { //Инициализуруем и заполняем необходимые объекты DataAccessBank Bank = new DataAccessBank(); DataAccessBasicReis BasicReis = new DataAccessBasicReis(); DataAccessReis Reis = new DataAccessReis(); DataAccessClients Clients = new DataAccessClients(); DataAccessPlains Plains = new DataAccessPlains(); CCashier Cashier = new CCashier(ref Bank, ref BasicReis, ref Reis, ref Clients, ref Plains); OutMenu(Reis, Cashier); }