|
@@ -387,7 +387,6 @@ namespace Welling_Motor_Debug_Tool
|
|
|
Local_HdInformation += "CPU厂商: " + PC_Information.GetCpuManufacturer() + "\r\n";
|
|
|
Local_HdInformation += "CPU ID: " + PC_Information.GetCPUSerialNumber() + "\r\n";
|
|
|
Local_HdInformation += "内存容量: " + PC_Information.GetPhysicalMemory() + " GB" + "\r\n";
|
|
|
- Local_HdInformation += "硬盘容量: " + PC_Information.GetDiskCapacity() + "\r\n";
|
|
|
Local_HdInformation += "MAC ID: " + PC_Information.GetNetCardMACAddress().Replace(":", "-") + "\r\n";
|
|
|
System.IO.File.WriteAllText(localInfo.LocalPath + localInfo.PC_InfoFileName, Local_HdInformation);
|
|
|
}
|
|
@@ -587,11 +586,11 @@ namespace Welling_Motor_Debug_Tool
|
|
|
tabPage_ProductMode_Write.Select();
|
|
|
tabPage_ProductMode_Read.Parent = null;
|
|
|
//允许离线使用
|
|
|
- 允许ToolStripMenuItem.Checked = true;
|
|
|
- 不允许ToolStripMenuItem.Checked = false;
|
|
|
- checkBox_OffLineFacMode.Checked = true;
|
|
|
+ 允许ToolStripMenuItem.Checked = false;
|
|
|
+ 不允许ToolStripMenuItem.Checked = true;
|
|
|
+ checkBox_OffLineFacMode.Checked = false;
|
|
|
checkBox_OffLineFacMode.Enabled = true;
|
|
|
- checkBox_OffLineCheckMode.Checked = true;
|
|
|
+ checkBox_OffLineCheckMode.Checked = false;
|
|
|
checkBox_OffLineCheckMode.Enabled = true;
|
|
|
//应答指令不提示
|
|
|
ACK_DisFlag = false;
|
|
@@ -702,7 +701,7 @@ namespace Welling_Motor_Debug_Tool
|
|
|
else//服务器连接失败
|
|
|
{
|
|
|
myFtp.IsNetConnected = false;
|
|
|
- if ((EnterForm1.comboBox_User.Text != "管理员") && (EnterForm1.comboBox_User.Text != "FCT治具测试"))
|
|
|
+ if (EnterForm1.comboBox_User.Text != "管理员")
|
|
|
{
|
|
|
timer_1s.Enabled = false;
|
|
|
MessageBoxTimeOut.Show("网络断开,将自动关闭!", "提示", 2000, MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
|
@@ -754,7 +753,7 @@ namespace Welling_Motor_Debug_Tool
|
|
|
else//服务器连接失败
|
|
|
{
|
|
|
myFtp.IsNetConnected = false;
|
|
|
- if ((EnterForm1.comboBox_User.Text != "管理员") && (EnterForm1.comboBox_User.Text != "FCT治具测试"))
|
|
|
+ if (EnterForm1.comboBox_User.Text != "管理员")
|
|
|
{
|
|
|
timer_1s.Enabled = false;
|
|
|
MessageBoxTimeOut.Show("网络断开, 请检查网络!", "提示", 2000, MessageBoxButtons.OK, MessageBoxIcon.Warning); //提示框自动3s关闭
|