Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            AuthentificationManager am = new Authentification();

            // persistance
            try
            {
                am.Load("users.txt");
            }
            catch (IOException e)
            {
                Console.WriteLine(e);
            }

            /*AuthentificationServer authentificationServer = new AuthentificationServer(am);
             *
             * authentificationServer.StartServer(26763);
             *
             * authentificationServer.Run();
             * TextChatRoom chatRoom = new TextChatRoom();
             * ServerChatRoom server = new ServerChatRoom(chatRoom);
             * server.StartServer(26763);
             *
             * server.Run();*/

            ServerTopicsManager stm = new ServerTopicsManager(am);

            stm.StartServer(26763);
            stm.Run();
        }
Ejemplo n.º 2
0
        static void Main()
        {
            ServerTopicsManager server = new ServerTopicsManager();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1(server));
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            AuthentificationManager am = new Authentification();

            // persistance
            try
            {
                am.Load("users.txt");
            }
            catch (IOException e)
            {
                Console.WriteLine(e);
            }

            ServerTopicsManager stm = new ServerTopicsManager(am);

            stm.StartServer(26763);
        }
Ejemplo n.º 4
0
 public Form1(ServerTopicsManager serv)
 {
     this.serv = serv;
     InitializeComponent();
 }