public Node(ref nodeForm win, string domain, string n) { form = win; form.SetLabel("Węzeł nr " + n); name = "r" + n; clientCloud = new TcpClient("127.0.0.1", 60000); clientNms = new TcpClient("127.0.0.1", 50000 + Int32.Parse(domain)); }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); nodeForm window = new nodeForm(); Node node = new Node(ref window, args[0], args[1]); node.Start(); Application.Run(window); node.Stop(); }