public GRemoteDialog() { ffmpeg = new FFMpeg(); areaDialog = new CaptureArea(this); sessionDialog = new SessionDialog(); prefsDialog = new PreferencesDialog(this); InitializeComponent(); videoScreen.GRemote = this; Text = String.Format("GRemote ({0})", Version); }
/// <summary> /// Stops any recording, playback, server, client, etc. /// </summary> public void Stop() { if (videoCapture != null) { videoCapture.StopCapturing(); } StopServer(); StopClient(); if (aboutDialog != null) { aboutDialog.Close(); aboutDialog.Dispose(); aboutDialog = null; } if (areaDialog != null) { areaDialog.Close(); areaDialog.Dispose(); areaDialog = null; } }