Пример #1
0
        public RunSetActionSendFreeEmailEditPage(RunSetActionSendFreeEmail runSetActionSendFreeEmail)
        {
            InitializeComponent();
            if (runSetActionSendFreeEmail.Email == null)
            {
                runSetActionSendFreeEmail.Email = new Email();
            }

            RunsetActionDeliveryMethodConfigPageFrame.Content = new RunSetActionDeliveryMethodConfigPage(runSetActionSendFreeEmail.Email);
            Context context = new Context()
            {
                Environment = WorkSpace.Instance.RunsetExecutor.RunsetExecutionEnvironment
            };

            MailFromTextBox.Init(context, runSetActionSendFreeEmail, nameof(RunSetActionSendFreeEmail.MailFrom));
            MailToTextBox.Init(context, runSetActionSendFreeEmail, nameof(RunSetActionSendFreeEmail.MailTo));
            MailCCTextBox.Init(context, runSetActionSendFreeEmail, nameof(RunSetActionSendFreeEmail.MailCC));
            SubjectTextBox.Init(context, runSetActionSendFreeEmail, nameof(RunSetActionSendFreeEmail.Subject));
            BodyTextBox.Init(context, runSetActionSendFreeEmail, nameof(RunSetActionSendFreeEmail.Bodytext));
            BodyTextBox.AdjustHight(100);
            if (string.IsNullOrEmpty(runSetActionSendFreeEmail.MailTo))
            {
                runSetActionSendFreeEmail.MailFrom = WorkSpace.Instance.UserProfile.UserEmail;
            }
        }
Пример #2
0
 public RunSetActionSendFreeEmailEditPage(RunSetActionSendFreeEmail runSetActionSendFreeEmail)
 {
     InitializeComponent();
     if (runSetActionSendFreeEmail.Email == null)
     {
         runSetActionSendFreeEmail.Email = new Email();
     }
     MailFromTextBox.Init(runSetActionSendFreeEmail, RunSetActionHTMLReportSendEmail.Fields.MailFrom);
     MailToTextBox.Init(runSetActionSendFreeEmail, RunSetActionHTMLReportSendEmail.Fields.MailTo);
     MailCCTextBox.Init(runSetActionSendFreeEmail, RunSetActionHTMLReportSendEmail.Fields.MailCC);
     SubjectTextBox.Init(runSetActionSendFreeEmail, RunSetActionHTMLReportSendEmail.Fields.Subject);
     BodyTextBox.Init(runSetActionSendFreeEmail, RunSetActionHTMLReportSendEmail.Fields.Bodytext);
     BodyTextBox.AdjustHight(100);
     App.ObjFieldBinding(xSMTPPortTextBox, TextBox.TextProperty, runSetActionSendFreeEmail.Email, Email.Fields.SMTPPort);
     App.ObjFieldBinding(xSMTPPassTextBox, TextBox.TextProperty, runSetActionSendFreeEmail.Email, Email.Fields.SMTPPass);
     App.FillComboFromEnumVal(xEmailMethodComboBox, runSetActionSendFreeEmail.Email.EmailMethod);
     xSMTPMailHostTextBox.Init(runSetActionSendFreeEmail, RunSetActionHTMLReportSendEmail.Fields.MailHost);
     xSMTPUserTextBox.Init(runSetActionSendFreeEmail, RunSetActionHTMLReportSendEmail.Fields.MailUser);
     App.ObjFieldBinding(xEmailMethodComboBox, ComboBox.SelectedValueProperty, runSetActionSendFreeEmail.Email, Email.Fields.EmailMethod);
     App.ObjFieldBinding(xcbEnableSSL, CheckBox.IsCheckedProperty, runSetActionSendFreeEmail.Email, Email.Fields.EnableSSL);
     App.ObjFieldBinding(xcbConfigureCredential, CheckBox.IsCheckedProperty, runSetActionSendFreeEmail.Email, Email.Fields.ConfigureCredential);
     if (string.IsNullOrEmpty(runSetActionSendFreeEmail.MailTo))
     {
         runSetActionSendFreeEmail.MailFrom = App.UserProfile.UserEmail;
     }
 }
Пример #3
0
        public RunSetActionSendFreeEmailEditPage(RunSetActionSendFreeEmail runSetActionSendFreeEmail)
        {
            mRunSetActionSendFreeEmail = runSetActionSendFreeEmail;
            InitializeComponent();
            if (mRunSetActionSendFreeEmail.Email == null)
            {
                mRunSetActionSendFreeEmail.Email = new Email();
            }

            RunsetActionDeliveryMethodConfigPageFrame.Content = new RunSetActionDeliveryMethodConfigPage(mRunSetActionSendFreeEmail.Email);
            Context context = new Context()
            {
                Environment = WorkSpace.Instance.RunsetExecutor.RunsetExecutionEnvironment
            };

            MailFromTextBox.Init(context, mRunSetActionSendFreeEmail, nameof(RunSetActionSendFreeEmail.MailFrom));
            xMailFromDisplayNameTextBox.Init(context, mRunSetActionSendFreeEmail, nameof(RunSetActionSendFreeEmail.MailFromDisplayName));
            MailToTextBox.Init(context, mRunSetActionSendFreeEmail, nameof(RunSetActionSendFreeEmail.MailTo));
            MailCCTextBox.Init(context, mRunSetActionSendFreeEmail, nameof(RunSetActionSendFreeEmail.MailCC));
            SubjectTextBox.Init(context, mRunSetActionSendFreeEmail, nameof(RunSetActionSendFreeEmail.Subject));
            BodyTextBox.Init(context, mRunSetActionSendFreeEmail, nameof(RunSetActionSendFreeEmail.Bodytext));
            BodyTextBox.AdjustHight(100);

            if (string.IsNullOrEmpty(mRunSetActionSendFreeEmail.MailTo))
            {
                mRunSetActionSendFreeEmail.MailFrom = WorkSpace.Instance.UserProfile.UserEmail;
            }

            if (mRunSetActionSendFreeEmail.Email.EmailMethod == Email.eEmailMethod.SMTP)
            {
                if (string.IsNullOrEmpty(mRunSetActionSendFreeEmail.MailFromDisplayName))
                {
                    mRunSetActionSendFreeEmail.MailFromDisplayName = "_Amdocs Ginger Automation";
                }
            }
            ShowDisplayNameOption();
        }
Пример #4
0
 public RunSetActionSendFreeEmailOperations(RunSetActionSendFreeEmail runSetActionSendFreeEmail)
 {
     this.RunSetActionSendFreeEmail = runSetActionSendFreeEmail;
     this.RunSetActionSendFreeEmail.RunSetActionSendFreeEmailOperations = this;
 }