示例#1
0
文件: FrmMain.cs 项目: zhh007/CKGen
        public void ShowCode(ShowCodeEvent e)
        {
            CodeView codeShow = new CodeView();
            codeShow.Dock = DockStyle.Fill;

            DockContent dc = new DockContent();
            dc.Text = e.Title;
            dc.Controls.Add(codeShow);
            dc.Show(this.dockPanel, DockState.Document);

            codeShow.Show(e.Code);
        }
示例#2
0
 private void ShowCode(string title, string code)
 {
     ShowCodeEvent evt = new ShowCodeEvent();
     evt.Title = title;
     evt.Code = code;
     AppEvent.Publish(evt);
 }