void connection_ConnectClient(object sender, ClientConnectionEventArgs e) { Background = yellow; }
internal void ConnectClientMessageRecived(String clientAddress, uint widthMonitor, uint heightMonitor) { if (widthMonitor > 0) { widthClientMonitor = (int)widthMonitor; } if (heightMonitor > 0) { heightClientMonitor = (int)heightMonitor; } ClientConnectionEventArgs eventArgs = new ClientConnectionEventArgs(clientAddress); EventHandler<ClientConnectionEventArgs> handler = ConnectClient; if (handler != null) { handler(this, eventArgs); } }
private void connection_ConnectClient(object sender, ClientConnectionEventArgs e) { stateLabel.Content = CONNESSO; stopButton.IsEnabled = true; notifyServer.Icon = new System.Drawing.Icon(path + "\\cerchio_giallo.ico"); notifyServer.BalloonTipText = "In attesa di interagire col CLIENT"; notifyServer.ShowBalloonTip(400); isConnected = true; }