You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
568 B
C#
23 lines
568 B
C#
using Aucma.Scada.UI.viewModel;
|
|
using System;
|
|
|
|
namespace Aucma.Scada.UI
|
|
{
|
|
/// <summary>
|
|
/// MainWindow.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class MainWindow
|
|
{
|
|
private static readonly Lazy<MainWindow> _instance = new Lazy<MainWindow>(() => new MainWindow());
|
|
|
|
public static MainWindow Instance => _instance.Value;
|
|
|
|
private MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
MainViewModel mainViewModel = new MainViewModel();
|
|
this.DataContext = mainViewModel;
|
|
}
|
|
}
|
|
}
|