20 lines
483 B
C#
20 lines
483 B
C#
using System;
|
|
using System.Windows;
|
|
|
|
namespace WPF
|
|
{
|
|
public class WPF
|
|
{
|
|
public static void Init()
|
|
{
|
|
if (Application.Current == null)
|
|
{
|
|
new Application();
|
|
|
|
Application.Current.Resources.MergedDictionaries.Add(
|
|
Application.LoadComponent(new Uri("mpvnet;component/WPF/Resources.xaml",
|
|
UriKind.Relative)) as ResourceDictionary);
|
|
}
|
|
}
|
|
}
|
|
} |