You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.8 KiB
64 lines
1.8 KiB
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
|
|
{
|
|
/// <summary>
|
|
/// CDKEY.xaml 的交互逻辑
|
|
/// </summary>
|
|
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)
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
|