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.
25 lines
616 B
C#
25 lines
616 B
C#
using Aucma.Scada.UI.viewModel;
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.Windows;
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|