Inheritance: System.Windows.Controls.UserControl
Ejemplo n.º 1
0
        private void EditDialPlan(SIPDialPlan dialPlan)
        {
            if (m_selectedDialPlan == null || m_selectedDialPlan != dialPlan)
            {
                m_selectedDialPlan = dialPlan;

                if (m_selectedDialPlan.ScriptType == SIPDialPlanScriptTypesEnum.TelisWizard)
                {
                    if (m_wizardEditControl != null)
                    {
                        m_wizardEditControl.DisableSelectionChanges();
                    }

                    m_wizardEditControl = new DialPlanWizard(LogActivityMessage_External, m_selectedDialPlan, m_owner, null, UpdateDialPlan, DetailsControlClosed, m_riaContext);
                    m_dialPlansPanel.SetDetailsElement(m_wizardEditControl);
                }
                else if (m_selectedDialPlan.ScriptType == SIPDialPlanScriptTypesEnum.SimpleWizard)
                {
                    m_simpleWizardManager = new SimpleWizardManager(LogActivityMessage_External, m_selectedDialPlan, m_owner, null, UpdateDialPlan, DetailsControlClosed, m_riaContext);
                    m_dialPlansPanel.SetDetailsElement(m_simpleWizardManager);
                }
                else
                {
                    m_editControl = new DialPlanUpdateControl(m_selectedDialPlan, m_owner, UpdateDialPlan, DetailsControlClosed);
                    m_dialPlansPanel.SetDetailsElement(m_editControl);
                }
            }
        }
Ejemplo n.º 2
0
        private void EditDialPlan(SIPDialPlan dialPlan)
        {
            if (m_selectedDialPlan == null || m_selectedDialPlan != dialPlan)
            {
                m_selectedDialPlan = dialPlan;

                if (m_selectedDialPlan.ScriptType == SIPDialPlanScriptTypesEnum.TelisWizard)
                {
                    if (m_wizardEditControl != null)
                    {
                        m_wizardEditControl.DisableSelectionChanges();
                    }

                    m_wizardEditControl = new DialPlanWizard(LogActivityMessage_External, m_selectedDialPlan, m_owner, null, UpdateDialPlan, DetailsControlClosed, m_riaContext);
                    m_dialPlansPanel.SetDetailsElement(m_wizardEditControl);
                }
                else if (m_selectedDialPlan.ScriptType == SIPDialPlanScriptTypesEnum.SimpleWizard)
                {
                    m_simpleWizardManager = new SimpleWizardManager(LogActivityMessage_External, m_selectedDialPlan, m_owner, null, UpdateDialPlan, DetailsControlClosed, m_riaContext);
                    m_dialPlansPanel.SetDetailsElement(m_simpleWizardManager);
                }
                else
                {
                    m_editControl = new DialPlanUpdateControl(m_selectedDialPlan, m_owner, UpdateDialPlan, DetailsControlClosed);
                    m_dialPlansPanel.SetDetailsElement(m_editControl);
                }
            }
        }