Beispiel #1
0
 private void sendToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!SendForm.isShowing)
     {
         SendForm f = new SendForm();
         f.Show();
     }
 }
Beispiel #2
0
        private async void ComposeMessage(object sender, EventArgs e)
        {
            if (messages.SelectedItem != null && currentView == EmailClient.MessageType.Draft)
            {
                MessageBoxItem selected = messages.SelectedItem as MessageBoxItem;
                var            data     = await Task.Run(() => EmailClient.Instance.GetMessage(selected.id, currentView));

                SendForm f = new SendForm(data.Body, data.Subject, data.Attachments);
                f.Show();
            }
        }