Exemplo n.º 1
0
        public int Initialize(FileSystem ex_filesystem, UDPServer ex_server, Cryptography ex_cryptography, Blocks ex_blocks, bool ex_debug)
        {
            filesystem   = ex_filesystem;
            server       = ex_server;
            cryptography = ex_cryptography;
            debug        = ex_debug;
            blocks       = ex_blocks;

            //window.WriteLine("class Transactions: initialized");

            return(1);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public int Initialize(FileSystem ex_filesystem, UdpClient ex_socket, FileTransfering ex_filetransfering, Cryptography ex_cryptography, UDPServer ex_server, Information ex_information, Blocks ex_blocks, bool ex_debug)
        {
            filesystem      = ex_filesystem;
            socket          = ex_socket;
            filetransfering = ex_filetransfering;
            cryptography    = ex_cryptography;
            debug           = ex_debug;
            blocks          = ex_blocks;
            server          = ex_server;
            information     = ex_information;

            //window.WriteLine("class GetLogic: initialized");
            return(1);
        }