private void RwMenuItem(object sender, RoutedEventArgs e) // REMOTE WEBCAM { if (getClient() != null) { FrmRemoteWebcam frmRw = new FrmRemoteWebcam(getClient()); frmRw.Text = SetWindowTitle("Remote Webcam", getClient()); frmRw.ShowDialog(); frmRw.Focus(); } }
public void frmWbc(ClientMosaic client) { try { FrmRemoteWebcam frmwbc = new FrmRemoteWebcam(client); frmwbc.Text = "Remote Webcam" + ' ' + client.endPoint.Address + " : " + client.endPoint.Port; frmwbc.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString(), "FrmWbc MainController", MessageBoxButtons.OK, MessageBoxIcon.Error); } }