Exemplo n.º 1
0
        public int Initialize(UDPServer main_server, FileSystem main_directory, FileTransfering main_filetransfering, Cryptography main_cryptography, Information main_info, bool main_debug)
        {
            debug           = main_debug;
            directory       = main_directory;
            server          = main_server;
            filetransfering = main_filetransfering;
            cryptography    = main_cryptography;
            info            = main_info;

            //window.WriteLine("class Updating: initialized");
            return(1);
        }
Exemplo n.º 2
0
        public int Initialize(Cryptography ex_cryptography, FileTransfering ex_filetransfering, FileSystem ex_filesystem, UDPServer ex_server, GetLogic ex_getlogic, Transactions ex_transactions, bool ex_debug)
        {
            cryptography    = ex_cryptography;
            debug           = ex_debug;
            filesystem      = ex_filesystem;
            filetransfering = ex_filetransfering;
            getlogic        = ex_getlogic;
            server          = ex_server;
            transactions    = ex_transactions;

            //window.WriteLine("class Blocks: 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);
        }
Exemplo n.º 4
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);
        }