Add MailTo
This commit is contained in:
@ -51,7 +51,8 @@
|
||||
|
||||
<Menu Grid.ColumnSpan="3" BorderThickness="0,0,0,1" BorderBrush="LightGray" Background="White">
|
||||
<MenuItem Header="Mitglied">
|
||||
<MenuItem Header="E-Mail senden"/>
|
||||
<MenuItem x:Name="Menu_Member_SendEmail" Header="E-Mail senden" IsEnabled="False"
|
||||
Click="Menu_Member_SendEmail_Click"/>
|
||||
</MenuItem>
|
||||
<MenuItem Header="Drucken">
|
||||
<MenuItem Header="Stammdatenblatt drucken"/>
|
||||
|
@ -266,6 +266,10 @@ namespace WGneu.Windows {
|
||||
RefreshMemberList();
|
||||
}
|
||||
|
||||
private void Menu_Member_SendEmail_Click(object sender, EventArgs e) {
|
||||
Utils.MailTo(((Member)MemberList.SelectedItem).Email);
|
||||
}
|
||||
|
||||
private void FocusSearchInput(object sender, RoutedEventArgs e) {
|
||||
if (!IsEditing && !IsCreating) {
|
||||
SearchInput.Focus();
|
||||
@ -398,6 +402,8 @@ namespace WGneu.Windows {
|
||||
case "email": ContactEmailInput.IsChecked = true; break;
|
||||
}
|
||||
|
||||
Menu_Member_SendEmail.IsEnabled = m.Email != null;
|
||||
|
||||
foreach (var tb in Utils.FindVisualChilds<TextBox>(this, ExemptInputs))
|
||||
OriginalValues[tb] = tb.Text;
|
||||
foreach (var cb in Utils.FindVisualChilds<ComboBox>(this, ExemptInputs))
|
||||
@ -409,6 +415,7 @@ namespace WGneu.Windows {
|
||||
}
|
||||
|
||||
private void ClearInputs() {
|
||||
Menu_Member_SendEmail.IsEnabled = false;
|
||||
OriginalValues.Clear();
|
||||
foreach (var tb in Utils.FindVisualChilds<TextBox>(this, ExemptInputs))
|
||||
tb.Text = "";
|
||||
|
Reference in New Issue
Block a user