Ejemplo n.º 1
0
 private void btnThanksCard_Click(object sender, EventArgs e)
 {
     ShowCompiledText newForm = new ShowCompiledText();
     newForm.WindowName = "Dankkarte";
     newForm.TxtEmail = String.Format("{0}", txtInviteEmail.Text);
     newForm.TxtTextToCopy = String.Format("Hallo {0},\n\nIch hoffe ihr hattet genau so viel\nSpass wie ich und alle anderen. Ich möchte\neuch auch ganz herzlich für {1}\ndanken! Wirklich toll! Ich wünsche\neuch noch eine gute Zeit.", txtInviteName.Text,txtPresents.Text).Replace("\n", Environment.NewLine);
     newForm.ShowDialog();
 }
Ejemplo n.º 2
0
 private void btnGenerateInvite_Click(object sender, EventArgs e)
 {
     ShowCompiledText newForm = new ShowCompiledText();
     newForm.WindowName= "Einladung";
     newForm.TxtEmail = String.Format("{0}", txtInviteEmail.Text);
     newForm.TxtTextToCopy = String.Format("Hallo {0},\n\nIch möchte dich ganz herzlich zu \"{1}\" einladen!\nLos gehts am {2} um {3}, und wir treffen uns im {4}.\nGib in deiner Antwort doch bitte an, wie viele kommen werden\nund wer Vegetarier ist, damit die Menüs entsprechend\nvorbereitet werden können! Kommt ihr mit dem Auto?\nParkplätze sind beschränkt...\n\nIch freue mich auf euch!", txtInviteName.Text, txtPartyName.Text, dpPartyDate.Text, txtPartyTime.Text, txtPartyLocation.Text).Replace("\n", Environment.NewLine);
     newForm.ShowDialog();
 }