private void Respond(ComposeEmail.EmailType type)
 {
     ComposeEmail compose = EmailFactory.GetComposeEmail();
     compose.SetEmailType(type, message);
     compose.Show();
     Hide();
 }
Esempio n. 2
0
 public static ComposeEmail GetComposeEmail()
 {
     if (ComposeEmail == null)
     {
         ComposeEmail = new ComposeEmail(true);      //Change this
     }
     return(ComposeEmail);
 }
Esempio n. 3
0
        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;
        }
 private void Respond(ComposeEmail.EmailType type)
 {
     ComposeEmail compose = EmailFactory.GetComposeEmail();
     compose.SetEmailType(type, message);
     compose.Show();
     Hide();
 }