示例#1
0
            protected override void OnPaintBackground(PaintEventArgs e)
            {
                switch (m_LicenseType)
                {
                case RhinoLicensing.LicenseType.Free:
                case RhinoLicensing.LicenseType.Supporter:
                case RhinoLicensing.LicenseType.Contributor:
                {
                    var drawRect = Bounds;

                    if (m_ThemedBorderColor != Color.Empty)
                    {
                        using (var brush = new SolidBrush(m_ThemedBorderColor))
                            e.Graphics.FillRectangle(brush, drawRect);

                        drawRect.Inflate(-1, -1);
                    }

                    UITheme.DrawHorizontalBar(e.Graphics,
                                              drawRect,
                                              m_Theme.GetAppDrawingColor(UITheme.AppColor.StatusBarLight),
                                              m_Theme.GetAppDrawingColor(UITheme.AppColor.StatusBarDark),
                                              m_Theme.GetRenderStyle());
                }
                break;

                default:
                case RhinoLicensing.LicenseType.Paid:
                case RhinoLicensing.LicenseType.Trial:
                    base.OnPaintBackground(e);
                    break;
                }
            }