コード例 #1
0
ファイル: Server.xaml.cs プロジェクト: Muny/Azuru-Screen-WPF
        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";
            });
        }