using Bro.UI.Config.Ctrls; using Bro.UI.Model.Winform; using System.Windows.Forms; namespace Bro.UI.Config.MenuForms { [MenuNode("Test", "测试", 2, "View2", true)] public partial class FrmTest : MenuFrmBase { readonly CtrlMethodInvoke ctrlMethodInvoker = new CtrlMethodInvoke(Common.Helper.InvokeType.TestInvoke); public FrmTest() { InitializeComponent(); ctrlMethodInvoker.Dock = DockStyle.Fill; plMain.Controls.Add(ctrlMethodInvoker); ctrlMethodInvoker.OnLogMsgOutput -= LogAsync; ctrlMethodInvoker.OnLogMsgOutput += LogAsync; } public override void OnProcessUpdated() { ctrlMethodInvoker.DownloadProcess(Process); } } }