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 WindowsFormsApp1.UserControls.配方; namespace MorClient.UserControls { public partial class UserControl_Formula_SecMenu : UserControl { PublicPara publicPara=new PublicPara(); public UserControl_Formula_SecMenu() { InitializeComponent(); } #region 鼠标点击事件 /// /// 作业配方 /// /// /// private void uiSymbolButton1_Click(object sender, EventArgs e) { if (PublicPara.twoFunctionButtons != "[作业配方]") { FrmMainFrame.CreatOperatorContent("配方-作业配方"); publicPara.GetTwoFunctionButtons("[作业配方]"); PublicPara.pubMainFrameObject.SetNowTwoPage("[作业配方]"); Formulabatch formulabatch = new Formulabatch(); formulabatch.GetDataSource(); formulabatch.Dock = DockStyle.Fill; PublicPara.pubMainFrameObject.plMain.Controls.Clear(); PublicPara.pubMainFrameObject.plMain.Controls.Add(formulabatch); PublicPara.pubMainFrameObject.plMain.Show(); } } /// /// 单元配方(默认) /// /// /// private void uiSymbolButton2_Click(object sender, EventArgs e) { if (PublicPara.twoFunctionButtons != "[单元配方]") { FrmMainFrame.CreatOperatorContent("配方-单元配方"); publicPara.GetTwoFunctionButtons("[单元配方]"); PublicPara.pubMainFrameObject.SetNowTwoPage("[单元配方]"); FormulaUnit formulaUnit = PubStaticClass.formulaUnit;//new FormulaUnit(); formulaUnit.GetFormulaUnit(formulaUnit); formulaUnit.ShowUintInsert(formulaUnit); formulaUnit.Dock = DockStyle.Fill; PublicPara.pubMainFrameObject.plMain.Controls.Clear(); PublicPara.pubMainFrameObject.plMain.Controls.Add(formulaUnit); PublicPara.pubMainFrameObject.plMain.Show(); } } #endregion 鼠标点击事件 private void uiSymbolButton3_Click(object sender, EventArgs e) { if (PublicPara.twoFunctionButtons != "[冲洗配方]") { FrmMainFrame.CreatOperatorContent("配方-冲洗配方"); publicPara.GetTwoFunctionButtons("[冲洗配方]"); PublicPara.pubMainFrameObject.SetNowTwoPage("[冲洗配方]"); FlushingFormula formulabatch = new FlushingFormula(1); formulabatch.GetDataSource(); formulabatch.Dock = DockStyle.Fill; PublicPara.pubMainFrameObject.plMain.Controls.Clear(); PublicPara.pubMainFrameObject.plMain.Controls.Add(formulabatch); PublicPara.pubMainFrameObject.plMain.Show(); } } private void uiSymbolButton4_Click(object sender, EventArgs e) { if (PublicPara.twoFunctionButtons != "[擦洗配方]") { FrmMainFrame.CreatOperatorContent("配方-擦洗配方"); publicPara.GetTwoFunctionButtons("[擦洗配方]"); PublicPara.pubMainFrameObject.SetNowTwoPage("[擦洗配方]"); ScrubbingFormula formulabatch = new ScrubbingFormula(1); formulabatch.GetDataSource(); formulabatch.Dock = DockStyle.Fill; PublicPara.pubMainFrameObject.plMain.Controls.Clear(); PublicPara.pubMainFrameObject.plMain.Controls.Add(formulabatch); PublicPara.pubMainFrameObject.plMain.Show(); } } } }