示例#1
0
 protected bool Equals(PowerPraiseSongFormatting other)
 {
     return(MainText.Equals(other.MainText) && TranslationText.Equals(other.TranslationText) &&
            CopyrightText.Equals(other.CopyrightText) && SourceText.Equals(other.SourceText) &&
            Outline.Equals(other.Outline) && Shadow.Equals(other.Shadow) &&
            MainLineSpacing == other.MainLineSpacing && TranslationLineSpacing == other.TranslationLineSpacing &&
            Equals(TextOrientation, other.TextOrientation) && TranslationPosition == other.TranslationPosition &&
            CopyrightTextPosition == other.CopyrightTextPosition &&
            SourceTextPosition == other.SourceTextPosition && Borders.Equals(other.Borders));
 }
示例#2
0
        protected override void OnPaint(PaintEventArgs e)
        {
            Graphics g = e.Graphics;

            if (ShowTopBar)
            {
                g.FillRectangle(new SolidBrush(TopBarColort), new Rectangle(0, 0, Width, TopBarHeight));
                g.TranslateTransform(0, TopBarHeight);
            }
            else
            {
                g.FillRectangle(new SolidBrush(TopBarColort), new Rectangle(0, 0, Width, 1));
            }
            if (MainIcon != null)
            {
                g.DrawImage(MainIcon, new Rectangle(MainIconLocationt, MainIconSize));
            }

            if (!MainText.Equals(String.Empty))
            {
                g.DrawString(MainText, MainTextFont, new SolidBrush(Cache.TextColor), MainTextLocation);
            }
            base.OnPaint(e);
        }