public AdminLogic(FileSystem ex_filesystem, UdpClient ex_socket, MainWindow ex_window, Updating ex_update, AdminClass ex_admin) { filesystem = ex_filesystem; socket = ex_socket; window = ex_window; update = ex_update; admin = ex_admin; }
public int Initialize(UDPServer main_server, FileSystem main_directory, FileTransfering main_filetransfering, Cryptography main_cryptography, Blocks main_blocks, Transactions main_transactions, Updating main_update, GetLogic ex_getlogic, AdminClass main_admin, bool main_debug) { debug = main_debug; directory = main_directory; cryptography = main_cryptography; update = main_update; admin = main_admin; blocks = main_blocks; transactions = main_transactions; getlogic = ex_getlogic; adminlogic = new AdminLogic(directory, socket, window, update, admin); //window.WriteLine("class UDPServer: initialized"); return(1); }