Merge branch 'master' of http://www.scserverddns.top:13000/sc/ProcessManageUI
This commit is contained in:
commit
79cb7ef123
3 files changed
+14
-7
No files matched your search
@@ -5,6 +5,7 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:ProcessManageUI"
|
||||
mc:Ignorable="d"
|
||||
Loaded="Window_Loaded"
|
||||
ResizeMode="NoResize"
|
||||
Title="ProcessManage" Height="450" Width="800" >
|
||||
<Grid>
|
||||
|
||||
@@ -13,7 +13,6 @@ using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
@@ -23,7 +22,6 @@ using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
using System.Xml.Linq;
|
||||
using static ProcessManageUI.SqliteHelper;
|
||||
using static System.Net.WebRequestMethods;
|
||||
|
||||
namespace ProcessManageUI
|
||||
{
|
||||
@@ -71,7 +69,7 @@ namespace ProcessManageUI
|
||||
base.OnClosing(e);
|
||||
}
|
||||
|
||||
private static IniFile.IniFiles Configini = new IniFile.IniFiles(Convert.ToString(System.AppDomain.CurrentDomain.BaseDirectory) + "ProcessManageConfigini.ini");
|
||||
private static IniFile.IniFiles Configini = new IniFile.IniFiles(Environment.CurrentDirectory + "\\ProcessManageConfigini.ini");
|
||||
private static string SQLIP = Configini.IniReadvalue("SQL_SERVER", "SQL1"); //读配置文件
|
||||
private static string SQLNAME = Configini.IniReadvalue("SQL_SERVER", "SQL2");
|
||||
private static string SQMOD = Configini.IniReadvalue("SQL_SERVER", "SQL3");
|
||||
@@ -94,8 +92,10 @@ namespace ProcessManageUI
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
// 程序默认启动时隐藏窗体
|
||||
DataContext = this;
|
||||
}
|
||||
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||
{ // 程序默认启动时隐藏窗体
|
||||
Hide();
|
||||
|
||||
IP.Text = SQLIP;
|
||||
@@ -113,7 +113,7 @@ namespace ProcessManageUI
|
||||
Product = SQLiteHelpers.ExecuteDataSet("select * from ProcessManage", null).Tables[0];
|
||||
SQLiteHelpers.Close();
|
||||
|
||||
Datalog.AppendText("\n设定循环时间"+ _intervalMs+"MS");
|
||||
Datalog.AppendText("\n设定循环时间" + _intervalMs + "MS");
|
||||
disTimer.Tick += EXTask;
|
||||
disTimer.Start();//计时开始
|
||||
|
||||
@@ -288,5 +288,7 @@ namespace ProcessManageUI
|
||||
data_Grid.Visibility=Visibility.Collapsed;
|
||||
disTimer.Start();//计时
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
@@ -24,6 +24,7 @@
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
@@ -37,6 +38,9 @@
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>sunlight_logo.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject>ProcessManageUI.App</StartupObject>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
|
||||
Reference in new issue
Block a user