private void OnBroadcastStop(Utils.ConnectionEventArgs args) { RunOnUIThread(() => { b_bc_start.Enabled = true; b_bc_stop.Enabled = false; t_broadcast.Text = "Down"; t_broadcast.ForeColor = Color.Red; }); }
private void OnBroadcastStart(Utils.ConnectionEventArgs args) { RunOnUIThread(() => { t_localip.Text = Utils.Globals.IpAddress; t_localhostname.Text = Utils.Globals.Hostname; b_bc_start.Enabled = false; b_bc_stop.Enabled = true; t_broadcast.Text = "Up"; t_broadcast.ForeColor = Color.Green; }); }
private void OnDisconnect(Utils.ConnectionEventArgs args) { RunOnUIThread(() => { t_remoteip.Text = "N/A"; t_remoteport.Text = "N/A"; t_remotehostname.Text = "N/A"; b_ctrl_start.Enabled = true; b_ctrl_stop.Enabled = false; b_disconnect.Enabled = false; }); }
private void OnConnecting(Utils.ConnectionEventArgs args) { RunOnUIThread(() => { t_localip.Text = Utils.Globals.IpAddress; t_localhostname.Text = Utils.Globals.Hostname; t_server.Text = "Up"; t_server.ForeColor = Color.Green; b_ctrl_start.Enabled = false; b_ctrl_stop.Enabled = true; b_disconnect.Enabled = false; }); }
private void OnStop(Utils.ConnectionEventArgs args) { RunOnUIThread(() => { t_remoteip.Text = "N/A"; t_remoteport.Text = "N/A"; t_remotehostname.Text = "N/A"; t_server.Text = "Down"; t_server.ForeColor = Color.Red; b_ctrl_start.Enabled = true; b_ctrl_stop.Enabled = false; b_disconnect.Enabled = false; }); }
private void OnConnected(Utils.ConnectionEventArgs args) { RunOnUIThread(() => { t_remotehostname.Text = args.RemoteHostname; t_remoteip.Text = args.RemoteIPEndPoint.Address.ToString(); t_remoteport.Text = args.RemoteIPEndPoint.Port.ToString(); t_server.Text = "Connected"; t_server.ForeColor = Color.LawnGreen; b_ctrl_start.Enabled = false; b_ctrl_stop.Enabled = true; b_disconnect.Enabled = true; }); }