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.
45 lines
1.5 KiB
45 lines
1.5 KiB
using System;
|
|
using System.Collections.Generic;
|
|
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.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace formula_manage.Windows
|
|
{
|
|
/// <summary>
|
|
/// APP_set.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class APP_set : Window
|
|
{
|
|
public APP_set()
|
|
{
|
|
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
|
InitializeComponent();
|
|
}
|
|
public string INIPath = Convert.ToString(System.AppDomain.CurrentDomain.BaseDirectory) + "formula.ini";
|
|
|
|
bool Login_link;
|
|
private void Window_SET(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
UserClass.IniFile.IniFiles Configini = new UserClass.IniFile.IniFiles(INIPath);
|
|
|
|
Login_link = Boolean.Parse(Configini.IniReadvalue("SOFTWARE_SET", "L1")); //连接状态显示是否生效
|
|
|
|
}
|
|
private void Login_LINK_Checked(object sender, RoutedEventArgs e)
|
|
{
|
|
Login_link = Login_LINK.IsChecked.GetValueOrDefault(); //显示是否生效
|
|
UserClass.IniFile.IniFiles Configini = new UserClass.IniFile.IniFiles(INIPath); //配置文件
|
|
Configini.IniWritevalue("SOFTWARE_SET", " L1", Login_link.ToString());
|
|
}
|
|
}
|
|
}
|
|
|