private void OnCreateTheme(object sender, EventArgs e)
 {
     ThemeConfigurationDialog themeConfigDialog = new ThemeConfigurationDialog(this.serviceProvider);
     if (themeConfigDialog.ShowDialog() == DialogResult.OK)
     {
         WorkflowTheme themeToApply = themeConfigDialog.ComposedTheme.Clone() as WorkflowTheme;
         if (themeToApply != null)
         {
             WorkflowTheme.CurrentTheme = themeToApply;
             WorkflowTheme.SaveThemeSettingToRegistry();
         }
     }
 }
                internal ReadonlyWorkflow(ThemeConfigurationDialog themeConfigDialog, IServiceProvider serviceProvider)
                    : base(serviceProvider)
                {
                    this.themeConfigDialog = themeConfigDialog;
                    this.themeConfigDialog.propertiesGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(OnThemePropertyChanged);
                    this.EnableFitToScreen = false;

                    AddDesignerMessageFilter(new ReadonlyMessageFilter());
                }
 internal DesignerPreview(ThemeConfigurationDialog parent)
 {
     BackColor = Color.White;
     this.parent = parent;
 }
 internal DesignerPreview(ThemeConfigurationDialog parent)
 {
     this.BackColor = System.Drawing.Color.White;
     this.parent = parent;
 }