代码拉取完成,页面将自动刷新
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TabHeaderDemo
{
public partial class UserControlStatus : UserControl
{
public void Init()
{
timer1.Enabled = true;
if (CComLibrary.GlobeVal.filesave.Samplingmode == 0)
{
label8.Visible = false;
label4.Visible = false;
lblcurlargecount.Visible = false;
lbllargecount.Visible = false;
}
else
{
label8.Visible = true;
label4.Visible = true;
lblcurlargecount.Visible = true;
lbllargecount.Visible = true;
}
return;
}
public UserControlStatus()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (GlobeVal.myarm.getrunstate() == 1)
{
lblstate.Text = "运行";
}
else
{
lblstate.Text = "停止";
}
if (CComLibrary.GlobeVal.filesave != null)
{
if (CComLibrary.GlobeVal.filesave.mseglist.Count > 0)
{
if (GlobeVal.myarm.mcurseg < CComLibrary.GlobeVal.filesave.mseglist.Count)
{
if (CComLibrary.GlobeVal.filesave.mcontrolprocess == 1)
{
lblstep.Text = "步骤" + (GlobeVal.myarm.mcurseg).ToString();
}
}
}
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。