加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
UserControlStatus.cs 1.85 KB
一键复制 编辑 原始数据 按行查看 历史
jlshiwei 提交于 2018-11-28 14:28 . shiwei 2018.11.28
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();
}
}
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化