Exemplo n.º 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];
            }
        }
Exemplo n.º 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];
            }
        }
Exemplo n.º 3
0
 public TabbedDocumentControlRenderer(TabbedDocumentControl control, ToolStripRenderer renderer)
     : base(renderer)
 {
     _control = control;
 }
Exemplo n.º 4
0
 public TabbedDocumentControlActiveFilesContextMenuHandler(TabbedDocumentControl tabbedDocumentControl)
 {
     _tabbedDocumentControl   = tabbedDocumentControl;
     _mapContextMenuToControl = new Dictionary <ToolStripMenuItem, Control>();
 }
Exemplo n.º 5
0
 public TabbedDocumentCollection(TabbedDocumentControl control)
 {
     _control = control;
 }
Exemplo n.º 6
0
 public TitlesEnumerator(TabbedDocumentControl control)
 {
     _enumerator = control._controlButtonMap.Values.GetEnumerator();
 }
Exemplo n.º 7
0
 internal TabbedDocumentTitlesCollection(TabbedDocumentControl control)
 {
     _control = control;
 }