CZ_Power/DeDetail.cs
(开头部分) 23KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using CZ_Power.Properties;
using DevComponents.DotNetBar;
using System.Drawing;
namespace CZ_Power
{
public partial class DeDetail : Form
{
private SwitchTypeSync detype;
private string deName;
public DeDetail(SwitchTypeSync detype, string deName)
{
InitializeComponent();
this.StartPosition = FormStartPosition.CenterScreen;
this.TopMost = true;
this.MinimizeBox = false;
this.MaximizeBox = false;
this.detype = detype;
this.deName = deName;
this.Text = deName;
LabName.Text = deName;
if (ClassData.Nowuser.UserName == "管理员")
{
groupBox2.Visible = true;
}
else
{
groupBox2.Visible = false;
}
timer1.Start();
}
Random random = new Random();
private void DeDetail_Load(object sender, EventArgs e)
{
flowLayoutPanel1.Controls.Clear();
Labswitch.Text = "";
switch (detype)
{
case SwitchTypeSync.UNT:
#region 安科瑞AMC96断路器
for (int i = 0; i < ComGroup.Degroup.Count; i++)
{
for (int j = 0; j < ComGroup.Degroup[i].ListUNT.DataUNTList.Count; j++)
{
ClassUNT unt = ComGroup.Degroup[i].ListUNT.DataUNTList[j] as ClassUNT;
if (unt.Type == detype && unt.DeName == deName)
{
for (int n = 0; n < unt.DedataAd.Length; n++)
{
if (unt.DedataAd[n].BWarnEnable)
{
CNACTION.DataAnalog dataAnalog = new CNACTION.DataAnalog();
dataAnalog.Margin = new System.Windows.Forms.Padding(3, 5, 3, 3);
dataAnalog.BackColor = Color.Transparent;
dataAnalog.DataName.Text = unt.DedataAd[n].DataName;
dataAnalog.DataValue.Text = unt.DedataAd[n].StrValue;
后面还有 425 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
