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; } }
public RunSetActionHTMLReportSendEmailEditPage(RunSetActionHTMLReportSendEmail runSetActionHTMLReportSendEmail) { InitializeComponent(); this.runSetActionHTMLReportSendEmail = runSetActionHTMLReportSendEmail; if (runSetActionHTMLReportSendEmail.Email == null) { runSetActionHTMLReportSendEmail.Email = new Email(); } MailFromTextBox.Init(null, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.MailFrom)); MailToTextBox.Init(null, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.MailTo)); MailCCTextBox.Init(null, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.MailCC)); SubjectTextBox.Init(null, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.Subject)); BodyTextBox.Init(null, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.Bodytext)); CommentTextBox.Init(null, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.Comments)); BodyTextBox.AdjustHight(100); App.ObjFieldBinding(xSMTPPortTextBox, TextBox.TextProperty, runSetActionHTMLReportSendEmail.Email, nameof(Email.SMTPPort)); App.ObjFieldBinding(xSMTPPassTextBox, TextBox.TextProperty, runSetActionHTMLReportSendEmail.Email, nameof(Email.SMTPPass)); App.FillComboFromEnumVal(xEmailMethodComboBox, runSetActionHTMLReportSendEmail.Email.EmailMethod); xSMTPMailHostTextBox.Init(null, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.MailHost)); xSMTPUserTextBox.Init(null, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.MailUser)); App.ObjFieldBinding(xEmailMethodComboBox, ComboBox.SelectedValueProperty, runSetActionHTMLReportSendEmail.Email, nameof(Email.EmailMethod)); App.ObjFieldBinding(xcbEnableSSL, CheckBox.IsCheckedProperty, runSetActionHTMLReportSendEmail.Email, nameof(Email.EnableSSL)); App.ObjFieldBinding(xcbConfigureCredential, CheckBox.IsCheckedProperty, runSetActionHTMLReportSendEmail.Email, nameof(Email.ConfigureCredential)); if (string.IsNullOrEmpty(runSetActionHTMLReportSendEmail.MailTo)) { runSetActionHTMLReportSendEmail.MailFrom = WorkSpace.UserProfile.UserEmail; } InitAttachmentsGrid(); RadioButtonInit(); }
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; } }
private void Bind() { MailFromTextBox.Init(Context.GetAsContext(mAct.Context), mAct, nameof(ActeMail.MailFrom)); xMailFromDisplayNameTextBox.Init(Context.GetAsContext(mAct.Context), mAct, nameof(ActeMail.MailFromDisplayName)); MailToTextBox.Init(Context.GetAsContext(mAct.Context), mAct, nameof(ActeMail.Mailto)); MailCCTextBox.Init(Context.GetAsContext(mAct.Context), mAct, nameof(ActeMail.Mailcc)); SubjectTextBox.Init(Context.GetAsContext(mAct.Context), mAct, nameof(ActeMail.Subject)); BodyTextBox.Init(Context.GetAsContext(mAct.Context), mAct, nameof(ActeMail.Body)); BodyTextBox.AdjustHight(100); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(xSMTPPortTextBox, TextBox.TextProperty, mAct, nameof(ActeMail.Port)); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(xSMTPPassTextBox, TextBox.TextProperty, mAct, nameof(ActeMail.Pass)); xSMTPMailHostTextBox.Init(Context.GetAsContext(mAct.Context), mAct, nameof(ActeMail.Host)); xSMTPUserTextBox.Init(Context.GetAsContext(mAct.Context), mAct, nameof(ActeMail.User)); GingerCore.GeneralLib.BindingHandler.ActInputValueBinding(xcbEnableSSL, CheckBox.IsCheckedProperty, mAct.GetOrCreateInputParam(ActeMail.Fields.EnableSSL, "true")); GingerCore.GeneralLib.BindingHandler.ActInputValueBinding(xcbConfigureCredential, CheckBox.IsCheckedProperty, mAct.GetOrCreateInputParam(ActeMail.Fields.ConfigureCredential, "false")); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(AttachmentFilename, TextBox.TextProperty, mAct, nameof(ActeMail.AttachmentFileName)); if (mAct.MailOption != null && mAct.MailOption == Email.eEmailMethod.OUTLOOK.ToString()) { RadioOutlookMailOption.IsChecked = true; } else { RadioSMTPMailOption.IsChecked = true; if (string.IsNullOrEmpty(mAct.MailFromDisplayName)) { mAct.MailFromDisplayName = "_Amdocs Ginger Automation"; } } ShowDisplayNameOption(); }
public RunSetActionHTMLReportSendEmailEditPage(RunSetActionHTMLReportSendEmail runSetActionHTMLReportSendEmail) { InitializeComponent(); this.runSetActionHTMLReportSendEmail = runSetActionHTMLReportSendEmail; if (runSetActionHTMLReportSendEmail.Email == null) { runSetActionHTMLReportSendEmail.Email = new Email(); } MailFromTextBox.Init(runSetActionHTMLReportSendEmail, RunSetActionHTMLReportSendEmail.Fields.MailFrom); MailToTextBox.Init(runSetActionHTMLReportSendEmail, RunSetActionHTMLReportSendEmail.Fields.MailTo); MailCCTextBox.Init(runSetActionHTMLReportSendEmail, RunSetActionHTMLReportSendEmail.Fields.MailCC); SubjectTextBox.Init(runSetActionHTMLReportSendEmail, RunSetActionHTMLReportSendEmail.Fields.Subject); BodyTextBox.Init(runSetActionHTMLReportSendEmail, RunSetActionHTMLReportSendEmail.Fields.Bodytext); CommentTextBox.Init(runSetActionHTMLReportSendEmail, RunSetActionHTMLReportSendEmail.Fields.Comments); BodyTextBox.AdjustHight(100); App.ObjFieldBinding(SMTPMailHostTextBox, TextBox.TextProperty, runSetActionHTMLReportSendEmail.Email, Email.Fields.SMTPMailHost); App.ObjFieldBinding(SMTPPortTextBox, TextBox.TextProperty, runSetActionHTMLReportSendEmail.Email, Email.Fields.SMTPPort); App.ObjFieldBinding(SMTPUserTextBox, TextBox.TextProperty, runSetActionHTMLReportSendEmail.Email, Email.Fields.SMTPUser); App.ObjFieldBinding(SMTPPassTextBox, TextBox.TextProperty, runSetActionHTMLReportSendEmail.Email, Email.Fields.SMTPPass); App.FillComboFromEnumVal(EmailMethodComboBox, runSetActionHTMLReportSendEmail.Email.EmailMethod); App.ObjFieldBinding(EmailMethodComboBox, ComboBox.SelectedValueProperty, runSetActionHTMLReportSendEmail.Email, Email.Fields.EmailMethod); App.ObjFieldBinding(cbEnableSSL, CheckBox.IsCheckedProperty, runSetActionHTMLReportSendEmail.Email, Email.Fields.EnableSSL); InitAttachmentsGrid(); RadioButtonInit(); }
public RunSetActionSendSMSEditPage(RunSetActionSendSMS runSetActionSendSMS) { InitializeComponent(); if (runSetActionSendSMS.SMSEmail == null) { runSetActionSendSMS.SMSEmail = new Email(); } RunsetActionDeliveryMethodConfigPageFrame.Content = new RunSetActionDeliveryMethodConfigPage(runSetActionSendSMS.SMSEmail); Context context = new Context() { Environment = WorkSpace.Instance.RunsetExecutor.RunsetExecutionEnvironment }; MailFromTextBox.Init(context, runSetActionSendSMS.SMSEmail, nameof(Email.MailFrom)); MailToTextBox.Init(context, runSetActionSendSMS.SMSEmail, nameof(Email.MailTo)); SubjectTextBox.Init(context, runSetActionSendSMS.SMSEmail, nameof(Email.Subject)); BodyTextBox.Init(context, runSetActionSendSMS.SMSEmail, nameof(Email.Body)); BodyTextBox.AdjustHight(100); }
public RunSetActionHTMLReportSendEmailEditPage(RunSetActionHTMLReportSendEmail runSetActionHTMLReportSendEmail) { InitializeComponent(); this.runSetActionHTMLReportSendEmail = runSetActionHTMLReportSendEmail; if (runSetActionHTMLReportSendEmail.Email == null) { runSetActionHTMLReportSendEmail.Email = new Email(); } RunsetActionDeliveryMethodConfigPageFrame.Content = new RunSetActionDeliveryMethodConfigPage(runSetActionHTMLReportSendEmail.Email); Context context = new Context() { Environment = WorkSpace.Instance.RunsetExecutor.RunsetExecutionEnvironment }; MailFromTextBox.Init(context, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.MailFrom)); MailToTextBox.Init(context, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.MailTo)); MailCCTextBox.Init(context, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.MailCC)); SubjectTextBox.Init(context, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.Subject)); BodyTextBox.Init(context, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.Bodytext)); CommentTextBox.Init(context, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.Comments)); xMailFromDisplayNameTextBox.Init(context, runSetActionHTMLReportSendEmail, nameof(RunSetActionHTMLReportSendEmail.MailFromDisplayName)); BodyTextBox.AdjustHight(100); if (string.IsNullOrEmpty(runSetActionHTMLReportSendEmail.MailTo)) { runSetActionHTMLReportSendEmail.MailFrom = WorkSpace.Instance.UserProfile.UserEmail; } if (string.IsNullOrEmpty(runSetActionHTMLReportSendEmail.MailFromDisplayName)) { runSetActionHTMLReportSendEmail.MailFromDisplayName = "_Amdocs Ginger Automation"; } InitAttachmentsGrid(); RadioButtonInit(); ShowDisplayNameOption(); }
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(); }