diff --git a/Windows/CDKEY.xaml b/Windows/CDKEY.xaml
new file mode 100644
index 0000000..061e8d9
--- /dev/null
+++ b/Windows/CDKEY.xaml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/Windows/CDKEY.xaml.cs b/Windows/CDKEY.xaml.cs
new file mode 100644
index 0000000..70e026b
--- /dev/null
+++ b/Windows/CDKEY.xaml.cs
@@ -0,0 +1,64 @@
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+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.Imaging;
+using System.Windows.Shapes;
+
+
+namespace formula_manage.Windows
+{
+ ///
+ /// CDKEY.xaml 的交互逻辑
+ ///
+ public partial class CDKEY : Window
+ {
+ public CDKEY()
+ {
+ WindowStartupLocation = WindowStartupLocation.CenterScreen;
+ InitializeComponent();
+ }
+
+ bool SQLTIME;
+ int Time;
+ int i;
+ string SQLIP;
+ string SQLNAME;
+ bool SQLMOD;
+ string SQLUSER;
+ string SQLPASS;
+
+ public string INIPath = Convert.ToString(System.AppDomain.CurrentDomain.BaseDirectory) + "formula.ini";
+
+ private void Window_CDKEY(object sender, RoutedEventArgs e) //打开页面
+ {
+ UserClass.IniFile.IniFiles Configini = new UserClass.IniFile.IniFiles(INIPath); //读配置文件
+
+ SQLIP = Configini.IniReadvalue("SQL_SERVER", "SQL1"); //读配置文件
+ SQLNAME = Configini.IniReadvalue("SQL_SERVER", "SQL2");
+ int.TryParse(Configini.IniReadvalue("SQL_SERVER", "SQL3"), out i); //读数据库状态配置文件
+ if (i == 0) SQLMOD = false;
+ else SQLMOD = true;
+ SQLUSER = Configini.IniReadvalue("SQL_SERVER", "SQL4");
+ SQLPASS = Configini.IniReadvalue("SQL_SERVER", "SQL5");
+
+ }
+
+
+
+ private async void Button_Click_2(object sender, RoutedEventArgs e)
+ {
+
+ }
+
+ }
+}
diff --git a/formula_manage.csproj b/formula_manage.csproj
index 00fe681..97018a1 100644
--- a/formula_manage.csproj
+++ b/formula_manage.csproj
@@ -102,7 +102,7 @@
formula_manage.App
- 1C3E0723F5447A112A6B4FFA5E891F5D2074F15B
+ 3A21420A69675572D3E1BCB9F33C2ACD060FBB82
formula_manage_TemporaryKey.pfx
@@ -254,6 +254,9 @@
fabric.xaml
+
+ CDKEY.xaml
+
User.xaml
@@ -336,6 +339,10 @@
MSBuild:Compile
Designer
+
+ MSBuild:Compile
+ Designer
+
MSBuild:Compile
Designer