SettingControl.cs
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using CodeLibrary;
using ConfigHelper;
using DeviceLibrary;
using OnlineStore;
using OnlineStore.ACSingleStore;
using OnlineStore.Common;
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TheMachine
{
public partial class SettingControl : UserControl
{
public SettingControl()
{
InitializeComponent();
RobotManage.LoadFinishEvent += RobotManage_LoadFinishEvent;
}
private void RobotManage_LoadFinishEvent(bool state, string msg)
{
if (!state)
return;
//uC_LedConfig1.Config = RobotManage.Config;
}
private void SettingControl_Load(object sender, EventArgs e)
{
}
private void button_positiontool_Click(object sender, EventArgs e)
{
if (RobotManage.isRunning)
{
MessageBox.Show(crc.GetString(L.before_FrmPositionTool_stopmuchine,"运行库位校准程序前,需要先停止料仓的运行"));
}
else
{
FrmPositionTool frmPositionTool = new FrmPositionTool(RobotManage.mainMachine.UpDown_Axis, IO_Type.Laser_Location);
frmPositionTool.ShowDialog();
}
}
}
}