private void SendingMailMessageButton_OnClick(object sender, RoutedEventArgs e) { try { SendingMailMessageWindow window = new SendingMailMessageWindow(); window.ShowDialog(); } catch (Exception exception) { StatusBar.Text = exception.Message; } }
private void SendingMailMessageaToAddress_OnClick(object sender, RoutedEventArgs e) { try { if (!string.IsNullOrEmpty(EmailFromTextBox.Text)) { SendingMailMessageWindow window = new SendingMailMessageWindow(EmailFromTextBox.Text); window.ShowDialog(); } } catch (Exception exception) { StatusBar.Text = exception.Message; } }