protected override void InitViewPanes(RibbonTab tab) { this.Orientation = Orientation.Horizontal; _paneRegExp = new PaneRegExp(_views); _paneRegExp.InitPane(_views, this, this.Panel1, tab); _paneRegExp._eventDataModified += new EventHandler(OnDataModified); _paneRegExp.EnableNavigation = false; this.Panel1.Controls.Add(_paneRegExp); _paneRegExp.ShowPane(); //InitializeRegExpEditor(false); ////////////////////////////////////////////////////////////////////////// _paneStatistics = new PaneStatistics(); _paneStatistics.InitPane(_views, this, this.Panel2, tab); _paneStatistics._eventDataModified += new EventHandler(OnDataModified); tab.Panels.RemoveAt(tab.Panels.Count - 2); this.Panel2.Controls.Add(_paneStatistics); _paneStatistics.ShowPane(); this.SplitterDistance -= 280; }
protected override void InitViewPanes(RibbonTab tab) { this.Orientation = Orientation.Horizontal; _paneRegExp = new PaneRegExp(_views); _paneRegExp.InitPane(_views, this, this.Panel1, tab); _paneRegExp._eventDataModified += new EventHandler(OnDataModified); this.Panel1.Controls.Add(_paneRegExp); _paneRegExp.ShowPane(); ////////////////////////////////////////////////////////////////////////// _splitter = new SplitContainer(); _splitter.Name = "Splitter"; _splitter.BorderStyle = BorderStyle.Fixed3D; _splitter.Orientation = Orientation.Vertical; _splitter.Dock = DockStyle.Fill; _splitter.BackColor = MainForm.ColorBackground; _splitter.Panel1MinSize = 0; _splitter.Panel2MinSize = 0; _splitter.Tag = new SplitterInfo(); this.Panel2.Controls.Add(_splitter); _paneDocuments = new PaneDocuments(); _paneDocuments.InitPane(_views, this, this.Panel1, tab); _paneDocuments._eventDataModified += new EventHandler(OnDataModified); _splitter.Panel1.Controls.Add(_paneDocuments); _paneDocuments.ShowPane(); ////////////////////////////////////////////////////////////////////////// _paneTabNotes = new PaneTabNotes(); _paneTabNotes.InitPane(_views, this, this.Panel1, tab); _paneTabNotes._eventDataModified += new EventHandler(OnDataModified); _paneTabNotes.PaneTab_CalcScores += paneNotes_CalcScores; _paneTabNotes.PaneTab_RefreshHighlights += new EventHandler(paneNotes_RefreshHighlights); _splitter.Panel2.Controls.Add(_paneTabNotes); _paneTabNotes.ShowPane(); /* * _paneNotes = new PaneNotes(); * _paneNotes.InitPane(_views, this, this.Panel1, tab); * _paneNotes._eventDataModified += new EventHandler(OnDataModified); * _paneNotes.CalcScores += paneNotes_CalcScores; * _paneNotes.RefreshHighlights += new EventHandler(paneNotes_RefreshHighlights); * * _splitter.Panel2.Controls.Add(_paneNotes); * _paneNotes.ShowPane(); */ ResetView(); _paneDocuments.Select(); }