using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using MorClient; using RS.Module.Common; namespace MorClient.UserControls { public partial class UserControl_Unit_SecMenu : UserControl { PublicPara publicPara = new PublicPara(); public UserControl_Unit_SecMenu() { InitializeComponent(); } /// /// 机器人 鼠标点击事件 /// /// /// private void uiSymbolButton3_Click(object sender, EventArgs e) { UnitRobot.IsPrintReadValue = true; if (PublicPara.twoFunctionButtons != "[机器人]") { FrmMainFrame.CreatOperatorContent("单元-机器人"); publicPara.GetTwoFunctionButtons("[机器人]"); PublicPara.pubMainFrameObject.SetNowTwoPage("[机器人]"); UnitRobot unitRobot = PubStaticClass.unitRobot;//new UnitRobot(); //unitRobot.UnitRobot_Load(sender, e); unitRobot.Dock = DockStyle.Fill; PublicPara.pubMainFrameObject.plMain.Controls.Clear(); PublicPara.pubMainFrameObject.plMain.Controls.Add(unitRobot); PublicPara.pubMainFrameObject.plMain.Show(); } } /// /// 手动(默认) 鼠标点击事件 /// /// /// private void uiSymbolButton2_Click(object sender, EventArgs e) { UnitHandact.IsPrintReadValue = true; if (PublicPara.twoFunctionButtons != "[手动]") { FrmMainFrame.CreatOperatorContent("单元-手动"); publicPara.GetTwoFunctionButtons("[手动]"); PublicPara.pubMainFrameObject.SetNowTwoPage("[手动]"); UnitHandact unitHandact = PubStaticClass.unitHandact;//new UnitHandact(); UnitMainFrm unitMainFrm = new UnitMainFrm(); unitMainFrm.Dock = DockStyle.Fill; unitMainFrm.GetUnitMainFrm(unitMainFrm); PublicPara.pubMainFrameObject.plMain.Controls.Clear(); unitMainFrm.uiButton1_Click(sender, e); PublicPara.pubMainFrameObject.plMain.Controls.Add(unitMainFrm); PublicPara.pubMainFrameObject.plMain.Show(); } } } }