using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace BeWo.View { /// /// Interaktionslogik für SupportEMailControl.xaml /// public partial class SupportEMailControl : UserControl { public event Action CancelButtonClicked; public event Action OkButtonClicked; public SupportEMailControl() { InitializeComponent(); } public String SenderName { get { return txtName.Text; } set { txtName.Text = value; } } public String SenderEMail { get { return txtEMail.Text; } set { txtEMail.Text = value; } } public String Subject { get { return txtSubject.Text; } set { txtSubject.Text = value; } } public String Message { get { return txtContent.Text; } set { txtContent.Text = value; } } private void AbbrechenButton_OnClick(object sender, RoutedEventArgs e) { if (CancelButtonClicked != null) CancelButtonClicked(); } private void WeiterButton_OnClick(object sender, RoutedEventArgs e) { if (OkButtonClicked != null) OkButtonClicked(); } } }