可执行文件改名
This commit is contained in:
parent
32d79cd4d0
commit
5d3b4b3e82
|
|
@ -11,8 +11,8 @@
|
|||
<ResourceDictionary>
|
||||
<vm:ViewModelLocator x:Key="Locator" d:IsDataSource="True" />
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/JianGongYun;component/Style/ShowControl.xaml"/>
|
||||
<ResourceDictionary Source="pack://application:,,,/JianGongYun;component/Style/TRTCResource.xaml"/>
|
||||
<ResourceDictionary Source="pack://application:,,,/sznykt;component/Style/ShowControl.xaml"/>
|
||||
<ResourceDictionary Source="pack://application:,,,/sznykt;component/Style/TRTCResource.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
<OutputType>WinExe</OutputType>
|
||||
<StartupObject></StartupObject>
|
||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||
<AssemblyName>sznykt</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AduSkin" Version="1.1.1.8" />
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace JianGongYun
|
|||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Closed += delegate { Application.Current.Shutdown(); };
|
||||
this.Closed += delegate { Environment.Exit(0); };
|
||||
Theme.ColorChange += delegate
|
||||
{
|
||||
// 不要通过XAML来绑定颜色,无法获取到通知
|
||||
|
|
|
|||
|
|
@ -730,11 +730,12 @@ namespace JianGongYun.TRTC
|
|||
//if (CallerWindow == null)
|
||||
//{
|
||||
// //关闭程序
|
||||
// Application.Current.Shutdown();
|
||||
// Environment.Exit(0);
|
||||
// return;
|
||||
//}
|
||||
//CallerWindow.Close();//直接关闭
|
||||
Application.Current.Shutdown();
|
||||
Environment.Exit(0);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ namespace JianGongYun.Views
|
|||
if (!string.IsNullOrWhiteSpace(errMsg))
|
||||
{
|
||||
MessageBox.Show(errMsg, "错误", MessageBoxButton.OKCancel, MessageBoxImage.Error);
|
||||
Application.Current.Shutdown();
|
||||
Environment.Exit(0);
|
||||
return;
|
||||
}
|
||||
LiveClassroom.EnterTheClassroom(Window.GetWindow(this),
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 264 KiB |
Loading…
Reference in New Issue