Exemplo n.º 1
0
 private void emailToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var EmailHost = Properties.Settings.Default.EmailHost;
     var EmailuserName = Properties.Settings.Default.EmailuserName;
     var EmailPassword = Properties.Settings.Default.EmailPassword;
     var IsSecureConnection = Properties.Settings.Default.SecureConnection;
     switch (myenum)
     {
         case MyEnum.EnglishQuestion:
             var form = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editor.ToMailMessage());
             form.ShowDialog();
             break;
         case MyEnum.EnglishOption1:
             var form1 = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editorEN1.ToMailMessage());
             form1.ShowDialog();
             break;
         case MyEnum.EnglishOption2:
             var form2 = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editorEN2.ToMailMessage());
             form2.ShowDialog();
             break;
         case MyEnum.EnglishOption3:
             var form3 = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editorEN3.ToMailMessage());
             form3.ShowDialog();
             break;
         case MyEnum.EnglishOption4:
             var form4 = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editorEN4.ToMailMessage());
             form4.ShowDialog();
             break;
         case MyEnum.HindiQuestion:
             var form5 = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editor1.ToMailMessage());
             form5.ShowDialog();
             break;
         case MyEnum.HindiOption1:
             var form6 = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editorHI1.ToMailMessage());
             form6.ShowDialog();
             break;
         case MyEnum.HindiOption2:
             var form7 = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editorHI2.ToMailMessage());
             form7.ShowDialog();
             break;
         case MyEnum.HindiOption3:
             var form8 = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editorHI3.ToMailMessage());
             form8.ShowDialog();
             break;
         case MyEnum.HindiOption4:
             var form9 = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editorHI4.ToMailMessage());
             form9.ShowDialog();
             break;
         default:
             var form0 = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editor.ToMailMessage());
             form0.ShowDialog();
             break;
     }
 }
Exemplo n.º 2
0
        private void emailToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var form = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editor.ToMailMessage());

            form.ShowDialog();
        }
Exemplo n.º 3
0
 private void emailToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var form = new ConfigureSMTPForm(null, 25, SMTPAuthenticationType.UsernamePassword, null, null, true, editor.ToMailMessage());
     form.ShowDialog();
 }