61 lines
2.1 KiB
C#
61 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Data;
|
|
using System.Text;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using DevExpress.XtraEditors;
|
|
using Api.Framework;
|
|
using Api.Framework.Tools;
|
|
|
|
namespace FLSystem.Forms
|
|
{
|
|
public partial class admin_verify_control : DevExpress.XtraEditors.XtraUserControl
|
|
{
|
|
public admin_verify_control()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void admin_verify_control_Load(object sender, EventArgs e)
|
|
{
|
|
//try
|
|
//{
|
|
// foreach (Control item in panelControl1.Controls)
|
|
// {
|
|
// if (item is CheckBox)
|
|
// {
|
|
// var control = item as CheckBox;
|
|
// if (ApiClient.Setting.SystemConfig.admin_verify_control_name.Contains(control.Text.Trim()))
|
|
// control.Checked = true;
|
|
// control.CheckedChanged += Common_CheckedChanged;
|
|
// }
|
|
// }
|
|
//}
|
|
//catch (Exception ex)
|
|
//{
|
|
// XtraMessageBox.Show(ex.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
//}
|
|
}
|
|
|
|
private void Common_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
//var control = sender as CheckBox;
|
|
//if (control.Checked)
|
|
//{
|
|
// if (!ApiClient.Setting.SystemConfig.admin_verify_control_name.Contains(control.Text.Trim()))
|
|
// ApiClient.Setting.SystemConfig.admin_verify_control_name.Add(control.Text.Trim());
|
|
//}
|
|
//else
|
|
//{
|
|
// if (ApiClient.Setting.SystemConfig.admin_verify_control_name.Contains(control.Text.Trim()))
|
|
// ApiClient.Setting.SystemConfig.admin_verify_control_name.Remove(control.Text.Trim());
|
|
//}
|
|
//Util.Save(ApiClient.Setting.SystemConfig);
|
|
}
|
|
}
|
|
}
|