33 lines
935 B
C#
33 lines
935 B
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 JianGongYun
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for App.xaml
|
|
/// </summary>
|
|
public partial class App : Application
|
|
{
|
|
public static BitmapImage icon
|
|
{
|
|
get
|
|
{
|
|
BitmapImage bitmapImage = new BitmapImage();
|
|
string name = "JianGongYun.lg.ico";
|
|
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
|
|
System.IO.Stream stream = assembly.GetManifestResourceStream(name);
|
|
bitmapImage.BeginInit();
|
|
bitmapImage.StreamSource = stream;
|
|
bitmapImage.EndInit();
|
|
return bitmapImage;
|
|
}
|
|
}
|
|
}
|
|
}
|