Example #1
0
        void StopSharing()
        {
            if (output != null)
            {
                output.Stop();
            }

            if (SharingSource != null)
            {
                SharingSource.Stop();
            }

            Dispatcher.Invoke(delegate()
            {
                serverStatusLabel.Background = new SolidColorBrush(System.Windows.Media.Color.FromRgb(193, 58, 58));
                serverStatusLabel.Content    = "Server Not Listening";
            });
        }