public FrmThempEditView(ControlContent con) { InitializeComponent(); this.Load += new EventHandler(FrmThempEditView_Load); this.ucCodeView1.P_Tools_save_Click += new EventHandler(ucCodeView1_P_Tools_save_Click); content = con; }
void bottonitem_Click(object sender, EventArgs e) { if (control == null) { control = Main.Interface.ComeBaseModule.UnManagerObjectPolling.GetObjectByName <ControlContent>("controlcontent") as ControlContent; } FrmEditDemo demo = new FrmEditDemo(); demo.TabText = (sender as ButtonItem).Text + " .源码参考"; control.OnShowDemoEvent(new ThempEditArgs <FrmEditDemo>(demo)); }