Example #1
0
        public void showLegend(Canvas aCan, String fName)
        {
            // ------------------------------------------------------------
            if (FoilNr == 0) return;

            WERROR.writeLog(ClassName + ".showLegend");

            Canvas tmpCanvas = new Canvas();
            Layer tmpLayer = new Layer(Layers.Count, "text");
            tmpLayer.paintString(tmpCanvas, 18, 700, 18, fName);
            aCan.Children.Add(tmpCanvas);
        }
Example #2
0
        public void showCopyright(Canvas aCan)
        {
            // ------------------------------------------------------------
            WERROR.writeLog(ClassName + ".showCopyright");

            Canvas crCanvas = new Canvas();
            Layer tmpLayer = new Layer(0, "text");
            tmpLayer.X1.From = 30;
            tmpLayer.Y1.From = 710;
            tmpLayer.FoilsFont.Size = 18;
            tmpLayer.FoilsFont.ForegroundColor = Brushes.Red.Color;
            tmpLayer.FoilsFont.BackgroundColor = Brushes.Transparent.Color;
            tmpLayer.BorderHeight.From = 24;
            String lines = "";
            //int nrLines = 0;
            String cText = "";
            String cMusic = "";
            String cRight = "";

            // Copyrighttext zusammenstellen
            if (WSGLOBAL.ActShow.Chapters.Count > 1 && ChapNr < WSGLOBAL.ActShow.Chapters.Count) {
                cText = WSGLOBAL.ActShow.Chapters[ChapNr].CrText;
                cRight = WSGLOBAL.ActShow.Chapters[ChapNr].Copyright;
                cMusic = WSGLOBAL.ActShow.Chapters[ChapNr].CrMusic;
            }

            if (cText == WCONST.UNKNOWN) cText = "";

            if (cText != "") {
                lines = "Text: " + cText;
                //nrLines = 1;
            }

            if (cMusic == WCONST.UNKNOWN) cMusic = "";

            if (cMusic != "") {
                if (cText != "") lines += " - Musik: " + cMusic;
                else lines = cMusic;
                //nrLines = 1;
            }

            if (cRight == WCONST.UNKNOWN) cRight = "";

            if (cRight != "") {

                if (lines.Length > 0) {
                    lines += WCONST.CRLF + cRight;
                    //nrLines = 2;
                }
                else lines = cRight;
            }

            if (lines.Length > 0) {
                tmpLayer.paintString(crCanvas, 18, 700, 18, lines);
                aCan.Children.Add(crCanvas);
            }
        }