/// <summary>
        /// Update control.
        /// </summary>
        /// <param name="control">Control to update.</param>
        private void UpdateControl(Control control)
        {
            if (control == null)
            {
                return;
            }

            IModernControl modernControl = control as IModernControl;

            if (modernControl != null)
            {
                this.ApplyModernStyle(modernControl);
            }

            IModernComponent modernComponent = control as IModernComponent;

            if (modernComponent != null)
            {
                this.ApplyModernStyle(modernComponent);
            }

            TabControl tabControl = control as TabControl;

            if (tabControl != null)
            {
                foreach (TabPage item in ((TabControl)control).TabPages)
                {
                    this.UpdateControl(item);
                }
            }

            if (control.Controls != null)
            {
                foreach (Control item in control.Controls)
                {
                    this.UpdateControl(item);
                }
            }

            if (control.ContextMenuStrip != null)
            {
                this.UpdateControl(control.ContextMenuStrip);
            }

            control.Refresh();
        }
 /// <summary>
 /// Apply modern style.
 /// </summary>
 /// <param name="component">IModernComponent to apply.</param>
 private void ApplyModernStyle(IModernComponent component)
 {
     component.StyleManager = this;
 }