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); }
private void ShowCode(string title, string code) { ShowCodeEvent evt = new ShowCodeEvent(); evt.Title = title; evt.Code = code; AppEvent.Publish(evt); }