Merge branch 'master' of http://192.168.0.12:13000/sc/Audit_APP
This commit is contained in:
commit
72a82b8c86
3 files changed
+32
-1
No files matched your search
+28
@@ -2,7 +2,11 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Configuration;
|
using System.Configuration;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
|
|
||||||
@@ -13,5 +17,29 @@ namespace Audit
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class App : Application
|
public partial class App : Application
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// App.xaml 的交互逻辑
|
||||||
|
/// </summary>
|
||||||
|
System.Threading.Mutex mutex;
|
||||||
|
/// <summary>
|
||||||
|
///检查应用进程,防止重复启动。
|
||||||
|
/// </summary>
|
||||||
|
public App()
|
||||||
|
{
|
||||||
|
this.Startup += new StartupEventHandler(App_Startup);
|
||||||
|
}
|
||||||
|
|
||||||
|
void App_Startup(object sender, StartupEventArgs e)
|
||||||
|
{
|
||||||
|
bool ret;
|
||||||
|
mutex = new System.Threading.Mutex(true, "ElectronicNeedleTherapySystem", out ret);
|
||||||
|
|
||||||
|
if (!ret)
|
||||||
|
{
|
||||||
|
MessageBox.Show("SC:审计管理已启动");
|
||||||
|
Environment.Exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -37,7 +37,7 @@ namespace Audit
|
|||||||
|
|
||||||
private void exit(object sender, RoutedEventArgs e)
|
private void exit(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
Application.Current.Shutdown();//关闭窗口
|
Application.Current.Shutdown();//关闭全部窗口
|
||||||
}
|
}
|
||||||
|
|
||||||
private void help(object sender, RoutedEventArgs e)
|
private void help(object sender, RoutedEventArgs e)
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ namespace Audit.ViewModel
|
|||||||
RaisePropertyChanged();
|
RaisePropertyChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// DyelotsBulkedRecipe
|
||||||
|
/// </summary>
|
||||||
public List<DyelotsBulkedRecipe> DyelotsBulkedRecipe
|
public List<DyelotsBulkedRecipe> DyelotsBulkedRecipe
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
Reference in new issue
Block a user