Пример #1
0
 private void zClearNotificationEditor()
 {
     gbNotificationEditor.Visible = false;
     if (m_NotificationEditor != null)
     {
         m_NotificationEditor.Dispose();
         gbNotificationEditor.Controls.Clear();
         m_NotificationEditor = null;
     }
 }
Пример #2
0
 private void zClearIterationEditor()
 {
     gbIterationEditor.Visible = false;
     if (m_IterationEditor != null)
     {
         m_IterationEditor.Dispose();
         gbIterationEditor.Controls.Clear();
         m_IterationEditor = null;
     }
 }
Пример #3
0
 private void zClearResultMappingEditor()
 {
     gbResultMappingEditor.Visible = false;
     if (m_ResultMappingEditor != null)
     {
         m_ResultMappingEditor.Dispose();
         gbResultMappingEditor.Controls.Clear();
         m_ResultMappingEditor = null;
     }
 }
Пример #4
0
 private void zUpdateIterationEditor()
 {
     zClearIterationEditor();
     if (m_Iteration != null)
     {
         gbIterationEditor.Visible = true;
         m_IterationEditor         = IterationEditorFactory.GetIterationEditor(this.StepEditContext, m_Iteration);
         m_IterationEditor.Dock    = DockStyle.Fill;
         gbIterationEditor.Controls.Add(m_IterationEditor);
         gbIterationEditor.Text = m_IterationEditor.Title;
     }
 }
Пример #5
0
 private void zUpdateResultMappingEditor()
 {
     zClearResultMappingEditor();
     if (m_ResultMapping != null)
     {
         gbResultMappingEditor.Visible = true;
         m_ResultMappingEditor         = ResultMappingEditorFactory.GetResultMappingEditor(this.StepEditContext, m_ResultMapping);
         m_ResultMappingEditor.Dock    = DockStyle.Fill;
         gbResultMappingEditor.Controls.Add(m_ResultMappingEditor);
         gbResultMappingEditor.Text = m_ResultMappingEditor.Title;
     }
 }
Пример #6
0
        private void zUpdateNotificationEditor()
        {
            zClearNotificationEditor();
            if (m_Notification != null)
            {
                Type notificationType = m_Notification.GetType();
                cbNotificationType.SelectedValue = notificationType;

                gbNotificationEditor.Visible = true;
                m_NotificationEditor         = NotificationEditorFactory.GetNotificationEditor(this.StepEditContext, m_Notification);
                m_NotificationEditor.Dock    = DockStyle.Fill;
                gbNotificationEditor.Controls.Add(m_NotificationEditor);
                gbNotificationEditor.Text = m_NotificationEditor.Title;
            }
            cbNotificationType.Enabled             = m_Notification == null;
            btnAddSaveNotification.BackgroundImage = m_Notification != null
                ? Properties.Resources.save
                : Properties.Resources.Add;
        }