Пример #1
0
        static void Main()
        {
            Client client = new ConcreteClient();

            client.WorkManager        = new ConcreteWorkManager();
            client.WorkManager.Client = client;

            client.Connection = new RSAProjectCryptography(new TCPConnection());

            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
Пример #2
0
        static void Main()
        {
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SocketCommunication Sender = new SocketCommunication();
            EvLoop Loop = new EvLoop();

            Sender.SetLoopAddress(Loop);
            Loop.SetSenderAddress(Sender);
            Sender.Connect("172.20.149.33", 3333); //f**k yeah
            Application.Run(new MainForm(Loop));
        }