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 MorCliemt.UserControls; using MorClient; namespace MorClient.UserControls { public partial class UserControl_SecMenu : UserControl { PublicPara publicPara = new PublicPara(); public UserControl_SecMenu() { InitializeComponent(); } #region 操作:右侧二级按钮鼠标点击事件 /// /// 初始化 鼠标双击点击事件 /// /// /// private void uiSymbolButton3_Click(object sender, EventArgs e) { if (PublicPara.twoFunctionButtons != "[初始化]") { FrmMainFrame.CreatOperatorContent("操作-初始化"); publicPara.GetTwoFunctionButtons("[初始化]"); PublicPara.pubMainFrameObject.SetNowTwoPage("[初始化]"); Initialize initialize = PubStaticClass.initialize;//new Initialize(); initialize.Dock = DockStyle.Fill; PublicPara.pubMainFrameObject.plMain.Controls.Clear(); PublicPara.pubMainFrameObject.plMain.Controls.Add(initialize); PublicPara.pubMainFrameObject.plMain.Show(); } } /// /// 主页 鼠标双击点击事件 /// /// /// private void uiSymbolButton1_Click(object sender, EventArgs e) { if (PublicPara.twoFunctionButtons != "[主页]") { FrmMainFrame.CreatOperatorContent("操作-主页"); publicPara.GetTwoFunctionButtons("[主页]"); PublicPara.pubMainFrameObject.SetNowTwoPage("[主页]"); Homepage homepage = PubStaticClass.homepage;//new Homepage(); homepage.Dock = DockStyle.Fill; PublicPara.pubMainFrameObject.plMain.Controls.Clear(); PublicPara.pubMainFrameObject.plMain.Controls.Add(homepage); PublicPara.pubMainFrameObject.plMain.Show(); } } /// /// 日志 鼠标双击点击事件 /// /// /// private void uiSymbolButton4_Click(object sender, EventArgs e) { if (PublicPara.twoFunctionButtons != "[日志]") { FrmMainFrame.CreatOperatorContent("操作-日志"); publicPara.GetTwoFunctionButtons("[日志]"); PublicPara.pubMainFrameObject.SetNowTwoPage("[日志]"); LogsControl logs = new LogsControl(); Homepage.GetNowLog(logs); logs.Dock = DockStyle.Fill; logs.GetLogObj(logs); PublicPara.pubMainFrameObject.plMain.Controls.Clear(); PublicPara.pubMainFrameObject.plMain.Controls.Add(logs); PublicPara.pubMainFrameObject.plMain.Show(); } } /// /// 监控 鼠标双击点击事件 /// /// /// private void uiSymbolButton2_Click(object sender, EventArgs e) { if (PublicPara.twoFunctionButtons != "[监控]") { FrmMainFrame.CreatOperatorContent("操作-监控"); publicPara.GetTwoFunctionButtons("[监控]"); PublicPara.pubMainFrameObject.SetNowTwoPage("[监控]"); Monitor userMonitoring = new Monitor(); userMonitoring.Dock = DockStyle.Fill; userMonitoring.GetMonitorObject(userMonitoring); userMonitoring.AddPanel(userMonitoring); PublicPara.pubMainFrameObject.plMain.Controls.Clear(); PublicPara.pubMainFrameObject.plMain.Controls.Add(userMonitoring); PublicPara.pubMainFrameObject.plMain.Show(); } } #endregion 操作:右侧二级按钮鼠标点击事件 } }