/// <summary> /// 添加代码显示 /// </summary> public void DisplayCode(string name, CodeInfo code) { CodeFrm codeFrm = new CodeFrm(); codeFrm.SetCode(name, code); codeFrm.Show(this.MainDockPanel, DockState.Document); }
private void MainFrm_Shown(object sender, EventArgs e) { CodeFrm frm = new CodeFrm(); frm.TabText = "新建文件"; frm.Show(this.MainDockPanel); frm.Focus(); }