Пример #1
0
 public static CharakterMan getChara(string name)
 {
     Charakter c = new Charakter(name, 0, "Standard");
     ManifestData md = new ManifestData(u);
     md.SetReader("../../Universe/Charakter/Charakter " + name + ".xml");
     c.Init(md);
     return (CharakterMan)c.Create(md);
 }
Пример #2
0
 public static void printCharakter(string name)
 {
     Charakter c = new Charakter(name, 0, "Standard");
     ManifestData md = new ManifestData(u);
     md.SetReader("../../Universe/Charakter/Charakter " + name + ".xml");
     c.Init(md);
     CharakterMan cm = (CharakterMan)c.Create(md);
     //Charakterbogen cb = new Charakterbogen(cm, u);
     //cb.Bogen.createPDF("../../Universe/Charakter/Charakter " + name);
 }
Пример #3
0
 public CharakterMan(Charakter Charakter, int Instanznummer)
     : base(Charakter, Instanznummer)
 {
     this.AktuelleSituationen = new List<Situation>();
 }
Пример #4
0
        protected void BuildStufe1PrintButton(Bogenmacher bm)
        {
            Button PrintButton = new Button();
            PrintButton.AutoSize = true;
            PrintButton.Text = "Print PDF";
            PrintButton.Click += (sender, e) =>
            {
                int Stufe = 1;
                Charakter c = new Charakter(this.Charakter);
                CharakterMan cm = c.Create(Stufe);
                DrawBox db = bm.Make(cm);
                string name = Speicherort.Verzeichnis() + DateiName + "s Charakterbogen, Stufe " + Stufe.ToString("D2");
                db.createPDF(name);
            };

            Liste.Add(PrintButton);
            NeedSpeicherort.Add(PrintButton);
        }
Пример #5
0
        protected void BuildPrintButton(Bogenmacher bm, int defaultStufe)
        {
            Label PrintLabel = new Label();
            PrintLabel.AutoSize = true;
            PrintLabel.Text = "Stufe: ";

            NumericUpDown PrintStufe = new NumericUpDown();
            PrintStufe.Maximum = Daten.StufenBachelor + Daten.StufenMaster;
            PrintStufe.Minimum = 1;
            PrintStufe.AutoSize = true;
            PrintStufe.Value = defaultStufe;

            Button PrintButton = new Button();
            PrintButton.AutoSize = true;
            PrintButton.Text = "Print PDF";
            PrintButton.Click += (sender, e) =>
            {
                int Stufe = (int)PrintStufe.Value;
                Charakter c = new Charakter(this.Charakter);
                CharakterMan cm = c.Create(Stufe);
                DrawBox db = bm.Make(cm);
                string name = Speicherort.Verzeichnis() + DateiName + "s Charakterbogen, Stufe " + Stufe.ToString("D2");
                db.createPDF(name);
            };

            ArrayControl PrintPDF = new ArrayControl(PrintButton, PrintLabel, PrintStufe);
            Liste.Add(PrintPDF);
            NeedSpeicherort.Add(PrintPDF);
        }
Пример #6
0
 protected void BuildPrintAllButton(Bogenmacher bm)
 {
     Button PrintAllPDF = new Button();
     PrintAllPDF.AutoSize = true;
     PrintAllPDF.Text = "Alle 20 Bögen generieren";
     PrintAllPDF.Click += (sender, e) =>
     {
         Charakter c = new Charakter(this.Charakter);
         for (int Stufe = 1; Stufe <= 20; Stufe++)
         {
             CharakterMan cm = c.Create(Stufe);
             DrawBox db = bm.Make(cm);
             string name = Speicherort.Verzeichnis() + DateiName + "s Charakterbogen, Stufe " + Stufe.ToString("D2");
             db.createPDF(name);
         }
     };
     Liste.Add(PrintAllPDF);
     NeedSpeicherort.Add(PrintAllPDF);
 }