protected internal override void ShowEditor() { if (!isEditorShown) { editor.Init(this, Style.CurrentStyle.ActorBackColor, Style.CurrentStyle.ActorBackColor, Style.CurrentStyle.ActorTextColor, Style.CurrentStyle.ActorFont); editor.Relocate(this, GetTextRectangle()); ShowWindow(editor); editor.Focus(); isEditorShown = true; } }
protected internal override void ShowEditor() { if (!isEditorShown) { var backColor = Style.CurrentStyle.UseCaseBackColor; var gradColor = Style.CurrentStyle.UseCaseGradientStyle == GradientStyle.None ? Style.CurrentStyle.UseCaseBackColor : Style.CurrentStyle.UseCaseGradientColor; var textColor = Style.CurrentStyle.UseCaseTextColor; editor.Init(this, backColor, gradColor, textColor, Style.CurrentStyle.UseCaseFont); editor.Relocate(this, GetTextRectangle()); ShowWindow(editor); editor.Focus(); isEditorShown = true; } }