private void SetDocumentsAppearance()
 {
     foreach (Document doc in tabbedView.Documents)
     {
         doc.Appearance.HeaderActive.BackColor = ExampleHelper.GetRandomColor();
     }
 }
예제 #2
0
        private void CreateNewDocument()
        {
            string   docName = string.Format("document{0}", tabbedView.Documents.Count + 1);
            Document doc     = tabbedView.AddDocument(GetControl()) as Document;

            doc.Caption     = docName;
            doc.ControlName = docName;
            doc.Appearance.HeaderActive.BackColor = ExampleHelper.GetRandomColor();
        }
예제 #3
0
 public static Control GetControl()
 {
     return(new Control {
         BackColor = ExampleHelper.GetRandomColor()
     });
 }