Exemple #1
0
        static public void SelectNextDocument(TabbedDocumentControl documentControl)
        {
            if (documentControl.SelectedControl == null)
            {
                return;
            }
            else
            {
                int index = documentControl.Items.IndexOf(documentControl.SelectedControl);
                index = (index + 1 == documentControl.Items.Count) ? 0 : index + 1;

                documentControl.SelectedControl = documentControl.Items[index];
            }
        }
Exemple #2
0
        static public void SelectPreviousDocument(TabbedDocumentControl documentControl)
        {
            if (documentControl.SelectedControl == null)
            {
                return;
            }
            else
            {
                int index = documentControl.Items.IndexOf(documentControl.SelectedControl);
                index = (index == 0) ? documentControl.Items.Count - 1 : index - 1;

                documentControl.SelectedControl = documentControl.Items[index];
            }
        }
Exemple #3
0
 public TabbedDocumentControlRenderer(TabbedDocumentControl control, ToolStripRenderer renderer)
     : base(renderer)
 {
     _control = control;
 }
Exemple #4
0
 public TabbedDocumentControlActiveFilesContextMenuHandler(TabbedDocumentControl tabbedDocumentControl)
 {
     _tabbedDocumentControl   = tabbedDocumentControl;
     _mapContextMenuToControl = new Dictionary <ToolStripMenuItem, Control>();
 }
Exemple #5
0
 public TabbedDocumentCollection(TabbedDocumentControl control)
 {
     _control = control;
 }
Exemple #6
0
 public TitlesEnumerator(TabbedDocumentControl control)
 {
     _enumerator = control._controlButtonMap.Values.GetEnumerator();
 }
Exemple #7
0
 internal TabbedDocumentTitlesCollection(TabbedDocumentControl control)
 {
     _control = control;
 }