コード例 #1
0
        private void SaveSimpleWizardDialPlanNameClick(object sender, System.Windows.RoutedEventArgs e)
        {
            string newName = _dialPlanNameTextBox.Text;

            if (newName.IsNullOrBlank())
            {
                LogActivityMessage_External(MessageLevelsEnum.Warn, "The new dial plan name cannot be empty. Please enter a new name.");
            }
            else
            {
                _dialPlanNameTextBox.IsEnabled = false;
                _saveButton.IsEnabled          = false;
                LogActivityMessage_External(MessageLevelsEnum.Info, "Sending change name request for Dial Plan " + m_dialPlan.DialPlanName + " to " + newName + ".");
                m_riaContext.ChangeSIPDialplanName(m_dialPlan.ID, newName, ChangeSIPDialPlanComplete, newName);
            }
        }