38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Media.Imaging;
|
|
|
|
namespace _29WxOrderWpf
|
|
{
|
|
/// <summary>
|
|
/// App.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class App : Application
|
|
{
|
|
public static string[] args = new List<string>().ToArray();
|
|
protected override void OnStartup(StartupEventArgs e)
|
|
{
|
|
base.OnStartup(e);
|
|
if (e.Args.Length > 0)
|
|
{
|
|
args = e.Args;
|
|
}
|
|
|
|
#region 后台修改logo
|
|
//// 替换字典程序logo等
|
|
//Uri imageUri = new Uri("pack://application:,,,/Resources/WindowBoxes/close.hover.png"); // 新的图片路径
|
|
//BitmapImage newBitmapImage = new BitmapImage(imageUri);
|
|
//// 获取资源字典
|
|
//ResourceDictionary dict = Application.Current.Resources;
|
|
//// 添加或更新资源
|
|
//dict["main29WeixinIcon"] = newBitmapImage;
|
|
#endregion
|
|
}
|
|
}
|
|
}
|