private void btnAddSaveNotification_Click(object sender, EventArgs e)
 {
     if (m_Notification == null)
     {
         Type selectedItem = (Type)cbNotificationType.SelectedValue;
         if (selectedItem == typeof(EmailNotification))
         {
             m_Notification = new EmailNotification();
         }
         if (selectedItem == typeof(SMSNotification))
         {
             m_Notification = new SMSNotification();
         }
         if (selectedItem == typeof(PopupNotification))
         {
             m_Notification = new PopupNotification();
         }
         m_Notifications.Add(m_Notification);
     }
     else
     {
         m_NotificationEditor.Save();
         m_Notification = null;
     }
     zRefreshNotifications();
     zUpdateNotificationEditor();
 }
Beispiel #2
0
 public override void Save()
 {
     if (m_IterationEditor != null)
     {
         m_IterationEditor.Save();
     }
     Step.Iteration = m_Iteration;
 }
        public override void Save()
        {
            base.Save();

            Step.ConnectionType              = (DataAccessType)cbConnectionType.SelectedItem;
            Step.ConnectionString            = txtConnectionString.Text;
            Step.CommandType                 = (UBoat.Utils.DataAccess.CommandType)cbCommandType.SelectedItem;
            Step.Command                     = commandEditor.Value;
            Step.TrimVariableValueWhitespace = commandEditor.TrimVariableValueWhitespace;
            Step.InputParameterMapping.Clear();
            Step.InputParameterMapping.AddRange(m_InputParameterMapping);
            Step.OutputParameterMapping.Clear();
            Step.OutputParameterMapping.AddRange(m_OutputParameterMapping);
            if (m_ResultMappingEditor != null)
            {
                m_ResultMappingEditor.Save();
            }
            Step.ResultMapping = m_ResultMapping;
        }