Ejemplo n.º 1
0
 public ConnectedClients(ServerSide mySer)
 {
     InitializeComponent();
     myServer = mySer;
     myServer.UserConected     += MyServer_UserConected;
     myServer.UserDisconnected += MyServer_UserDisconnected;
     myServer.UserSentMessage  += MyServer_UserSentMessage;
 }
Ejemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     server               = new ServerSide();
     server.logFunction   = UpdateLog;
     MesServer.IsEnabled  = false;
     SendServer.IsEnabled = false;
     Port.IsEnabled       = true;
 }
Ejemplo n.º 3
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            myServer = new ServerSide(IpTextBox1.Text, int.Parse(textPort.Text));

            ConnectedClients f = new ConnectedClients(myServer);

            this.Hide();
            f.ShowDialog();

            myServer = null;
            this.Show();
        }