private void DialPlansDataGrid_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            try
            {
                if (!m_dialPlansPanelRefreshInProgress && m_dialPlans != null && m_dialPlans.Count > 0)
                {
                    DataGrid dataGrid = (DataGrid)sender;
                    if (dataGrid.CurrentColumn.Header as string != "Delete")
                    {
                        SIPDialPlan dialPlan = (SIPDialPlan)m_dialPlansDataGrid.SelectedItem;

                        if (m_selectedDialPlan == null || m_selectedDialPlan != dialPlan)
                        {
                            m_selectedDialPlan = dialPlan;
                            m_editControl = new DialPlanDetailsControl(DetailsControlModesEnum.Edit, m_selectedDialPlan, m_owner, null, UpdateDialPlan, DetailsControlClosed);
                            m_dialPlansPanel.SetDetailsElement(m_editControl);
                        }
                    }
                }
            }
            catch (Exception excp)
            {
                LogActivityMessage_External(MessageLevelsEnum.Error, "Exception showing DialPlan details. " + excp.Message);
                m_selectedDialPlan = null;
            }
        }
 private void DialPlansPanel_Add()
 {
     m_selectedDialPlan = null;
     m_addControl = new DialPlanDetailsControl(DetailsControlModesEnum.Add, m_selectedDialPlan, m_owner, AddDialPlan, null, DetailsControlClosed);
     m_dialPlansPanel.SetDetailsElement(m_addControl);
 }