You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.6 KiB
76 lines
2.6 KiB
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();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 机器人 鼠标点击事件
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
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();
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 手动(默认) 鼠标点击事件
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
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();
|
|
}
|
|
}
|
|
}
|
|
}
|