private void Respond(ComposeEmail.EmailType type) { ComposeEmail compose = EmailFactory.GetComposeEmail(); compose.SetEmailType(type, message); compose.Show(); Hide(); }
public static ComposeEmail GetComposeEmail() { if (ComposeEmail == null) { ComposeEmail = new ComposeEmail(true); //Change this } return(ComposeEmail); }
private void InitializeForms(bool isQwerty) { frmDeleteEmail = new DeleteEmailConfirmation(); frmDeleteEmail.Visible = false; frmDeleteEmail.DeleteEmail_Click += FrmDeleteEmail_DeleteEmail_Click; frmEmailLogin = new frmEmailLogin(isQwerty); frmEmailLogin.Visible = false; frmEmailLogin.Cancel_Click += Show; frmComposeEmail = EmailFactory.GetComposeEmail(); frmComposeEmail.Cancel_Click += Show; frmComposeEmail.Send_Click += Show; frmViewEmail = new ViewEmail(); frmViewEmail.Back_Click += Show; }