Пример #1
0
        public void Get(Foil startFoil)
        {
            // --------------------------------------------------------------
            WERROR.writeLog(ClassName + ".getFoil");
            this.FoilName = startFoil.FoilName;
            this.FoilNr = startFoil.FoilNr;
            //this.ChapTitle = startFoil.ChapTitle;
            this.ChapNr = startFoil.ChapNr;
            this.DurationSec = startFoil.DurationSec;
            this.Delay = startFoil.Delay;
            this.SpeachTime = startFoil.SpeachTime;
            this.NoteRtf = startFoil.NoteRtf;
            this.HandoutNoteRtf = startFoil.HandoutNoteRtf;
            this.Active = startFoil.Active;
            this.IsPrintFoils = startFoil.IsPrintFoils;
            this.IsPrintNotes = startFoil.IsPrintNotes;
            this.IsPrintHandouts = startFoil.IsPrintHandouts;
            this.IsShowLegend = startFoil.IsShowLegend;
            FoilsFont.Get(startFoil.FoilsFont);
            FoilsNoteFont.Get(startFoil.FoilsNoteFont);
            HandoutNoteFont.Get(startFoil.HandoutNoteFont);
            this.Layers.Clear();

            for (int i = 0; i < startFoil.Layers.Count; i++) {
                this.Layers.Add(new Layer(i, "text"));
                this.Layers[i].Get(startFoil.Layers[i]);
            }
        }
Пример #2
0
        public void UndoPush(String action)
        {
            // ------------------------------------------------------------
            Foil tmpFoil = new Foil();
            tmpFoil.Get(this);
            tmpFoil.UndoAction = action;
            WSGLOBAL.UndoFoils.Push(tmpFoil);

            // Kapazität begrenzen
        }
Пример #3
0
        public static void Create(String layout = "1Text")
        {
            // ------------------------------------------------------------
            // Menü Folie erstellen
            WERROR.writeLog("Foil.Create");

            if (WSGLOBAL.CrtChapter >= WSGLOBAL.ActShow.Chapters.Count) return;

            //if (WSGLOBAL.CrtFoil > WSGLOBAL.ActShow.Chapters[WSGLOBAL.CrtChapter].Foils.Count) return;

            Foil tmpFoil = new Foil(WSGLOBAL.ActShow.Chapters[WSGLOBAL.CrtChapter].ChapTitle, "Vorlage", layout);
            tmpFoil.FoilNr = WSGLOBAL.ActShow.Chapters[WSGLOBAL.CrtChapter].Foils.Count;
            tmpFoil.Active = true;
            tmpFoil.ChapNr = WSGLOBAL.CrtChapter;
            tmpFoil.Delay = WSGLOBAL.ActShow.Delay;
            tmpFoil.DurationSec = WSGLOBAL.ActShow.DurationSec;
            if (tmpFoil.FoilNr < 1) tmpFoil.FoilName = "Kapitelhintergrund";
            else tmpFoil.FoilName = WSGLOBAL.CrtChapter.ToString() + "-" + tmpFoil.FoilNr;

            //switch (WSGLOBAL.ActShow.Chapters[WSGLOBAL.CrtChapter].ChapKind) {
            //    case "song": tmpFoil.FoilName = "Strophe " + tmpFoil.FoilNr; break;
            //    case "foils": tmpFoil.FoilName = "Folie " + tmpFoil.FoilNr; break;
            //    case "pictures": tmpFoil.FoilName = "Bild " + tmpFoil.FoilNr; break;
            //    case "chapter": tmpFoil.FoilName = "Abschnitt " + tmpFoil.FoilNr; break;
            //    case "media": tmpFoil.FoilName = "Video " + tmpFoil.FoilNr; break;
            //}

            tmpFoil.SpeachTime = 6;
            tmpFoil.IsShowLegend = WSGLOBAL.ActShow.ShowLegend;
            WSGLOBAL.ActShow.Chapters[WSGLOBAL.CrtChapter].Foils.Add(tmpFoil);
            WSGLOBAL.ActShow.Chapters[WSGLOBAL.CrtChapter].ReNumberFoils();
            WSGLOBAL.ActShow.Chapters[WSGLOBAL.CrtChapter].createFoilOrderString();
            WSGLOBAL.ActShow.Chapters[WSGLOBAL.CrtChapter].SaveXml(WSGLOBAL.AppActShowFolder);
            WSGLOBAL.CrtFoil = tmpFoil.FoilNr;
            WSGLOBAL.CrtLayer = 0;
        }