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(); }
static void Main() { ServerTopicsManager server = new ServerTopicsManager(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1(server)); }
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); }
public Form1(ServerTopicsManager serv) { this.serv = serv; InitializeComponent(); }