JianGongYun/JianGongYun/MainWindow.xaml.cs

44 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using AduSkin.Controls.Metro;
using AduSkin.Themes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace JianGongYun
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : MetroWindow
{
public MainWindow()
{
InitializeComponent();
this.Closed += delegate { Application.Current.Shutdown(); };
Theme.ColorChange += delegate
{
// 不要通过XAML来绑定颜色无法获取到通知
BorderBrush = Theme.CurrentColor.OpaqueSolidColorBrush;
};
BorderBrush = new SolidColorBrush(color: Color.FromRgb(42, 43, 48));
//TRTC集成测试
//ManageLiteAV.ITRTCCloud lTRTCCloud = ManageLiteAV.ITRTCCloud.getTRTCShareInstance();
//MessageBox.Show(lTRTCCloud.getSDKVersion());
//ManageLiteAV.ITRTCCloud.destroyTRTCShareInstance();
}
}
}